body {
    font-family: 'Albert Sans', sans-serif;
    line-height: 1.6;
    color: #2A2C35;
    margin: 0;
    padding: 0;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    margin-top: 2rem;
}

body.green-background {
    background-color: #E9EFE7;
}

header {
    background-color: white;
    width: 100%;
}

.nav-menu {
    padding: 20px 0; /* Increased padding to make the nav bar taller */
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #2A2C35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4A4C55;
}

.logo-link {
    display: inline-block;
}

.logo {
    max-width: 180px;
}

h1, h2 {
    font-family: 'Alike', serif;
    color: #2A2C35;
    text-align: center;
}

.hero {
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: #2A2C35;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4A4C55;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 40px;
}

.feature {
    flex-basis: calc(33.333% - 20px);
    background-color: #F9FAF8;
    padding: 20px;
    margin: 0 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(42, 44, 53, 0.1);
    text-align: center;
}

footer {
    background-color: #2A2C35;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .features {
        flex-wrap: wrap;
    }

    .feature {
        flex-basis: 100%;
        margin: 10px 0;
    }
}

/* Dashboard Styles */
.dashboard-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.menu-item {
    flex: 1;
    max-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(42, 44, 53, 0.1);
    text-align: center;
    text-decoration: none;
    color: #2A2C35;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item h2 {
    margin-top: 0;
    font-family: 'Alike', serif;
}

/* Login & Signup Styles */
.container.auth-page {
    max-width: 400px;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #2A2C35;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: #4A4C55;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.signup-link,
.login-link {
    text-align: center;
    margin-top: 20px;
}

.signup-link a,
.login-link a {
    color: #2A2C35;
    text-decoration: none;
    font-weight: 600;
}

/* Upload Styles */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 8px;
    background-color: #F9FAF8;
    border-radius: 4px;
    font-weight: bold;
}

.progress-step.active {
    background-color: #2A2C35;
    color: white;
}

.upload-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(42, 44, 53, 0.1);
    margin-top: 20px;
}

.file-input {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.file-input-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #2A2C35;
}

.file-input-content {
    flex-grow: 1;
}

.file-input label {
    display: inline-block;
    color: #2A2C35;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: underline;
}

.file-input label:hover {
    color: #4A4C55;
}

.file-input input[type='file'] {
    display: none;
}

.file-name {
    display: block;
    margin-top: 5px;
    font-style: italic;
    font-size: 14px;
    color: #666;
}

button[type='submit'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 20px;
    margin: 0 auto;
    background-color: #2A2C35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button[type='submit']:hover {
    background-color: #4A4C55;
}

button[type='submit'] i {
    margin-right: 10px;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #ffffff;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Analysis Result Styles */
.result {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(42, 44, 53, 0.1);
    margin-top: 20px;
}

.result h3 {
    color: #2A2C35;
    margin-top: 20px;
    margin-bottom: 10px;
}

.result ul {
    padding-left: 20px;
}

.result li {
    margin-bottom: 10px;
}

.highlight {
    background-color: #f0f0f0;
    padding: 5px;
    border-radius: 3px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-link {
    color: #2A2C35;
    text-decoration: none;
    font-weight: bold;
}

.nav-link:hover {
    text-decoration: underline;
}

/* History Styles */
.history-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(42, 44, 53, 0.1);
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E9EFE7;
}

th {
    background-color: #F9FAF8;
    font-weight: 600;
}

.action-btn {
    display: inline-block;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

.download-btn {
    background-color: #2A2C35;
    color: white;
}

.download-btn:hover {
    background-color: #4A4C55;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.delete-btn:hover {
    background-color: #da190b;
}

.button-container {
    display: flex;
    gap: 5px;
}

.message {
    background-color: #F9FAF8;
    border-left: 4px solid #2A2C35;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.error {
    border-left-color: #f44336;
    color: #b71c1c;
}

.claims-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.claim-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(42, 44, 53, 0.1);
}

.claim-item h2 {
    margin-top: 0;
    font-family: 'Alike', serif;
}

.view-button {
    display: inline-block;
    background-color: #2A2C35;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.view-button:hover {
    background-color: #4A4C55;
}

.claim-summary {
    margin-top: 10px;
    font-size: 0.9em;
}

.new-claim-cta {
    text-align: center;
    margin: 20px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.new-claim-button {
    display: inline-block;
    background-color: #2A2C35;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.new-claim-button:hover {
    background-color: #4A4C55;
}

.no-claims-message {
    text-align: center;
    margin-top: 50px;
    font-size: 18px;
}

.analysis,
.documents {
    margin-top: 30px;
}

.action-button {
    display: inline-block;
    background-color: #2A2C35;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.analysis-content {
    white-space: pre-wrap;
    font-family: 'Albert Sans', sans-serif;
    line-height: 1.6;
}

#emailTemplate {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-family: 'Albert Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.template-selection {
    margin-top: 20px;
}

.template-selection label {
    margin-right: 15px;
}

.copy-button {
    margin-top: 10px;
}

.next-steps {
    margin-top: 30px;
    padding: 15px;
    background-color: #e9efe7;
    border-radius: 4px;
}

.document-link {
    color: #2A2C35;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
}

.document-link:hover {
    text-decoration: underline;
}

body:not(.green-background) .container {
    margin-top: 0;
}