/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    /* Enhanced scrolling for mobile */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Privacy Disclaimer */
.disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.disclaimer-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.disclaimer-content h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.disclaimer-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.disclaimer.hidden {
    display: none;
}

/* Simple login button styling */
.login-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}

.login-btn:hover {
    background: #f5f5f5;
}


/* Navigation */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
}

.nav-tab {
    background: transparent;
    border: 2px solid #34495e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: #34495e;
}

.nav-tab.active {
    background: #3498db;
    border-color: #3498db;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Main Container */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
    padding: 20px;
    height: auto;
    min-height: calc(100vh - 80px);
    align-items: stretch;
}

/* Panels */
.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: calc(100vh - 120px);
}


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

.panel-header h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Left Panel - Medical Form */
.left-panel {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Right Panel - Same styling as left */
.right-panel {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.left-panel .form-section:first-child,
.right-panel .form-section:first-child {
    height: 250px !important;
    box-sizing: border-box;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 18px 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #27ae60;
}

.section-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-header h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.section-content {
    padding: 25px;
    display: block !important;
    visibility: visible !important;
    background: #fafbfc;
    overflow: visible;
    flex: 1;
}

.form-subsection {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e3e6ea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: block !important;
    visibility: visible !important;
    overflow: visible;
}

.form-subsection:last-child {
    margin-bottom: 0;
}

.form-subsection .panel-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.form-subsection .panel-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Form Groups and Rows */
.form-group {
    margin-bottom: 20px;
    display: block !important;
    visibility: visible !important;
    overflow: visible;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block !important;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    visibility: visible !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: #ffffff;
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.form-group textarea {
    resize: vertical;
    min-height: 85px;
    line-height: 1.5;
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    visibility: visible !important;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row-three {
    grid-template-columns: 2fr 1fr 1fr;
}

.form-row .form-group {
    display: block !important;
    visibility: visible !important;
}

/* Checkbox styling for addictions */
.addiction-checkboxes {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    visibility: visible !important;
    overflow: visible;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    visibility: visible !important;
}

.checkbox-label:hover {
    background-color: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: #3498db;
    transform: scale(1.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #3498db;
    font-weight: 600;
}

.checkbox-label span {
    user-select: none;
    transition: color 0.2s ease;
    display: inline !important;
    visibility: visible !important;
}

.symptoms-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.symptom-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.symptom-item:hover {
    border-color: #3498db;
}

.symptom-item.editing {
    border-color: #f39c12;
    background: #fdf6e3;
}

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

.symptom-input {
    position: relative;
    flex: 1;
}

.symptom-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #e3f2fd;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.duration-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.duration-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: white;
}

.duration-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    transition: all 0.2s ease;
    user-select: none;
}

.duration-btn:hover {
    background: #e9ecef;
    color: #3498db;
}

.duration-btn:active {
    background: #dee2e6;
    transform: scale(0.95);
}

.duration-controls input[type="number"] {
    width: 50px;
    padding: 6px 4px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: transparent;
}

.duration-controls input[type="number"]::-webkit-outer-spin-button,
.duration-controls input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duration-controls input[type="number"] {
    -moz-appearance: textfield;
}

.duration-radio-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.radio-label:hover {
    background-color: #f0f8ff;
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #3498db;
}

.radio-label input[type="radio"]:checked + span {
    color: #3498db;
    font-weight: 600;
}

.radio-label span {
    user-select: none;
    transition: color 0.2s ease;
}

.remove-symptom {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-symptom:hover {
    background: #c0392b;
}



.diagnosis-content {
    padding: 25px;
}

.diagnosis-content textarea,
.section-content textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    overflow: hidden;
    field-sizing: content;
}

/* Right Panel - AI Diagnosis */
.ai-diagnosis {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.ai-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-output {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    min-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
    background: #fafafa;
}

.ai-output:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.ai-output .placeholder {
    color: #999;
    font-style: italic;
}

/* AI Response Sections */
.diagnosis-preview-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #495057;
}

.diagnosis-preview-section strong {
    color: #2c3e50;
    font-size: 14px;
    font-family: inherit;
}

.ai-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-section h4 {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-bottom: none;
}

.diagnosis-section h4 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.recommendations-section h4 {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.general-section h4 {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.ai-section .section-content {
    padding: 20px;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 14px;
}

.ai-section .section-content br + br {
    display: block;
    margin: 10px 0;
    content: "";
}

.ai-response {
    font-size: 14px;
    line-height: 1.6;
}

.export-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #566170);
    transform: translateY(-1px);
}

.btn-add {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

.btn-add:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-export {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2);
}

.btn-export:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Settings View */
.settings-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

/* Logs View */
.logs-container {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logs-controls {
    margin-bottom: 20px;
    text-align: right;
}

.logs-content {
    max-height: 600px;
    overflow-y: auto;
}

.no-logs {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

.log-entry {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.log-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-header:hover {
    background: #e9ecef;
}

.log-details {
    padding: 15px;
    display: none;
    background: #fafafa;
}

.log-details.expanded {
    display: block;
}

.log-section {
    margin-bottom: 15px;
}

.log-section h4 {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.log-section pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 12px;
    white-space: pre-wrap;
}

/* Loading Spinner - Global (keep for backward compatibility) */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner.hidden {
    display: none;
}

/* AI Panel Loading Animation - Top positioned */
.ai-loading-top {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(2px);
}

.ai-loading-top.hidden {
    display: none;
}

.ai-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.ai-loading-text {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.ai-loading-dots {
    color: #3498db;
    font-size: 20px;
    animation: dots 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-success {
    color: #27ae60;
}

.text-error {
    color: #e74c3c;
}

.text-warning {
    color: #f39c12;
} 

/* Physical Examination Controls */
.physical-exam-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-exam-select {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-weight: 500;
}

.add-exam-select:focus {
    outline: none;
    border-color: #3498db;
}

.physical-exam-controls .btn-secondary {
    padding: 6px 12px;
    font-size: 12px;
}

/* Examination Field Styling */
.exam-field {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.exam-field.removed {
    display: none;
}

.exam-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-header h4 {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.remove-exam-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-exam-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.exam-content {
    padding: 15px;
    background: white;
}

.exam-content .form-group {
    margin-bottom: 0;
}

.exam-content .form-row {
    margin-bottom: 15px;
}

.exam-content .form-row:last-child {
    margin-bottom: 0;
}

/* Remove old checkbox styles */
.exam-toggle,
.exam-checkbox-label {
    display: none;
} 

/* Patient Selection Section */
.patient-selection-section {
    margin-bottom: 35px;
    border: 2px solid #3498db;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    background: #ffffff;
}

.patient-selection-section .section-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.patient-selection-section .section-header::before {
    background: #f39c12;
}

.patient-info-preview {
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.patient-info-preview p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
}

#patient-select {
    font-weight: 500;
    color: #2c3e50;
}

#patient-select option {
    padding: 8px;
} 

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.modal-body select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    color: #2c3e50;
}

.modal-body select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-patient-preview {
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.modal-patient-preview p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
}

.modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-footer .btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
} 

/* Speech Recognition Styles */
.speech-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.speech-input-wrapper {
    position: relative;
    flex: 1;
}

.speech-mic-btn {
    background: #3498db;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.speech-mic-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.speech-mic-btn.recording {
    background: #e74c3c;
    animation: speechPulse 1.5s infinite;
}

.speech-mic-btn.recording:hover {
    background: #c0392b;
}

.speech-mic-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

@keyframes speechPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.speech-status {
    position: absolute;
    top: -25px;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
    animation: fadeInDown 0.3s ease;
}

.speech-status.interim {
    background: #f39c12;
}

.speech-status.warning {
    background: #e67e22;
    animation: warningPulse 1s infinite;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speech-not-supported {
    background: #f39c12;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.form-group.has-speech input,
.form-group.has-speech textarea {
    flex: 1;
}

.symptom-input.has-speech {
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-input.has-speech .speech-input-wrapper {
    flex: 1;
    position: relative;
}

/* Voice Mode Toggle for Symptoms */
.symptoms-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.voice-mode-toggle {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #3498db;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.toggle-text {
    user-select: none;
    transition: color 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked ~ .toggle-text {
    color: #3498db;
    font-weight: 600;
}

/* Voice Mode Symptoms Panel */
.voice-mode-panel {
    background: #e3f2fd;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: none;
}

.voice-mode-panel.active {
    display: block;
}

.voice-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.voice-mode-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.voice-mode-status {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.voice-symptoms-count {
    font-size: 13px;
    color: #27ae60;
    font-weight: 500;
}

.voice-start-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-start-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.voice-start-btn.recording {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: speechPulse 1.5s infinite;
}

.voice-instructions {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

.voice-transcript-container {
    margin-top: 15px;
}

.voice-transcript {
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    min-height: 120px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    line-height: 1.5;
    width: 100%;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.voice-transcript:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.voice-transcript.interim {
    color: #7f8c8d;
    font-style: italic;
}

.voice-transcript.recording {
    border-color: #e74c3c;
    background: #fef9f9;
}

.voice-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.voice-actions button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.voice-actions .btn-primary {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.voice-actions .btn-primary:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
}

.voice-actions .btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.voice-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #566170);
    transform: translateY(-1px);
} 

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
}

/* Mobile header override - solid background, higher z-index, centered alignment */
@media (max-width: 768px) {
    .landing-header {
        background: #ffffff !important;
        backdrop-filter: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        height: 50px;
        z-index: 1001 !important;
        display: flex !important;
        align-items: center;
    }
    
    .header-container {
        width: 100% !important;
        height: 100%;
        display: grid !important;
        grid-template-columns: 50px 1fr auto;
        align-items: center !important;
        padding: 0 15px !important;
        gap: 10px;
        margin: 0 !important;
    }
    
    .logo {
        justify-self: left;
        text-align: left;
        display: flex;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 2.2rem !important;
        margin: 0;
        color: #1f2937 !important;
        white-space: nowrap;
        line-height: 1;
        display: flex;
        align-items: center;
    }
    
    .login-btn {
        justify-self: end;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        background: #3b82f6 !important;
        color: white !important;
        border: none;
        border-radius: 6px !important;
        cursor: pointer;
        white-space: nowrap;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.header-container {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025em;
}

.login-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Vertical connecting line */
.nav-items::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #e5e7eb 10%, 
        #e5e7eb 90%, 
        transparent 100%);
    z-index: 1;
}

.nav-items li {
    margin: 0;
    position: relative;
    z-index: 2;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    position: relative;
    padding: 8px 0;
    margin: 8px 0;
    color: #6b7280;
}

/* Circular element */
.nav-link::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #ffffff;
    margin-right: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    flex-shrink: 0;
}

/* Text styling */
.nav-link span {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    font-size: 0.8rem;
    white-space: nowrap;
}

.nav-link:hover::before {
    background: #3b82f6;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.nav-link:hover span {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1f2937;
    transform: translateX(4px);
}

.nav-link:hover {
    color: #1f2937;
}

/* Active state */
.nav-link.active::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3);
}

.nav-link.active span {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: transparent;
    transform: translateX(8px);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.nav-link.active {
    color: #3b82f6;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Inertia scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Section Layouts */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Welcome Section */
.welcome-section {
    background: #ffffff;
    color: #1f2937;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 40px;
}

.welcome-section .section-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    text-align: center;
    max-width: 1200px;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}

.highlight {
    color: #3b82f6;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    opacity: 0.3;
}

.header-container {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025em;
}

.login-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Main Content */
.landing-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 24px;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title br:first-of-type {
    margin-bottom: 8px;
}

.highlight {
    color: #3b82f6;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-subtitle br {
    margin-bottom: 20px;
    display: block;
    content: "";
}

.hero-subtitle strong {
    font-weight: 700;
    color: #111827;
}

/* Special styling for doctor callouts */
.doctor-callout {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
}

.doctor-callout::before {
    content: '👨‍⚕️';
    margin-right: 8px;
    font-size: 0.9em;
}

/* Enhanced paragraph styling for better readability */
.hero-subtitle strong {
    color: #1f2937;
    font-weight: 600;
}

/* Hero Medical Animation */
.hero-medical-animation {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.medical-animation-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-medical-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heartbeat-line {
    width: 600px;
    height: 120px;
    margin: 0 auto;
    animation: gentleFloat 4s ease-in-out infinite;
}

.heartbeat-svg {
    width: 100%;
    height: 100%;
}

.heartbeat-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawEEGLine 2s ease-out infinite;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
    stroke-width: 4;
}

.floating-medical-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.medical-icon-float {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.icon-1 {
    top: 10%;
    left: 15%;
    animation-name: floatMedical1;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 20%;
    animation-name: floatMedical2;
    animation-delay: 1s;
}

.icon-3 {
    top: 60%;
    left: 10%;
    animation-name: floatMedical3;
    animation-delay: 2s;
}

.icon-4 {
    top: 70%;
    right: 15%;
    animation-name: floatMedical4;
    animation-delay: 3s;
}

.icon-5 {
    top: 40%;
    left: 5%;
    animation-name: floatMedical5;
    animation-delay: 4s;
}

.icon-6 {
    top: 30%;
    right: 10%;
    animation-name: floatMedical6;
    animation-delay: 5s;
}

.icon-7 {
    top: 80%;
    left: 25%;
    animation-name: floatMedical7;
    animation-delay: 6s;
}

.icon-8 {
    top: 15%;
    left: 40%;
    animation-name: floatMedical8;
    animation-delay: 7s;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-transform: none;
    letter-spacing: 0.025em;
    margin-top: 32px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* Process Section */
.process-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.process-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.process-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: nowrap;
}

.process-step {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

.process-arrow {
    font-size: 2rem;
    color: #3b82f6;
    font-weight: 700;
    margin: 0 20px;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Features Section */
.features-section {
    padding: 80px 24px;
    background: #f9fafb;
}

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

.features-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 64px;
    letter-spacing: -0.025em;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 24px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-demo {
    margin-top: 24px;
}

.demo-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
}

.demo-box.dark {
    background: #1f2937;
    color: white;
    border-color: #374151;
}

.demo-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.diagnosis-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icd-code {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.confidence {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: auto;
}

.icd-codes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code {
    background: #e5e7eb;
    color: #1f2937;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.speed-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer {
    color: #059669;
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    width: 75%;
    border-radius: 2px;
    animation: progressAnimation 2s ease-in-out infinite;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 24px;
    background: #ffffff;
}

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

.testimonials-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.testimonials-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 4rem;
    color: #3b82f6;
    font-family: serif;
    line-height: 1;
}

.stars {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    font-size: 2.5rem;
    background: #f3f4f6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.author-title {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Testimonials Stats */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Privacy Section */
.privacy-section {
    padding: 80px 24px;
    text-align: center;
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.privacy-section p {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.privacy-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.privacy-icon {
    font-size: 2rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 75%;
    }
    100% {
        width: 100%;
    }
}

/* Hero Medical Animation Keyframes */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}



@keyframes drawEEGLine {
    0% {
        stroke-dashoffset: 1500;
        opacity: 0.8;
    }
    80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes floatMedical1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    25% { transform: translate(8px, -10px) rotate(3deg); opacity: 0.7; }
    50% { transform: translate(-4px, -15px) rotate(-2deg); opacity: 0.5; }
    75% { transform: translate(10px, -5px) rotate(5deg); opacity: 0.8; }
}

@keyframes floatMedical2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(-8px, 12px) rotate(-4deg); opacity: 0.8; }
    50% { transform: translate(6px, 18px) rotate(3deg); opacity: 0.6; }
    75% { transform: translate(-6px, 10px) rotate(-1deg); opacity: 0.7; }
}

@keyframes floatMedical3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25% { transform: translate(10px, -6px) rotate(4deg); opacity: 0.4; }
    50% { transform: translate(-6px, -12px) rotate(-3deg); opacity: 0.8; }
    75% { transform: translate(12px, -3px) rotate(2deg); opacity: 0.5; }
}

@keyframes floatMedical4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
    25% { transform: translate(-12px, -8px) rotate(-3deg); opacity: 0.5; }
    50% { transform: translate(8px, -15px) rotate(5deg); opacity: 0.8; }
    75% { transform: translate(-5px, -12px) rotate(-4deg); opacity: 0.6; }
}

@keyframes floatMedical5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    25% { transform: translate(6px, 10px) rotate(2deg); opacity: 0.7; }
    50% { transform: translate(-10px, 15px) rotate(-5deg); opacity: 0.5; }
    75% { transform: translate(8px, 6px) rotate(3deg); opacity: 0.8; }
}

@keyframes floatMedical6 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(-7px, -5px) rotate(-1deg); opacity: 0.8; }
    50% { transform: translate(12px, -10px) rotate(4deg); opacity: 0.6; }
    75% { transform: translate(-8px, -12px) rotate(-3deg); opacity: 0.7; }
}

@keyframes floatMedical7 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25% { transform: translate(14px, 5px) rotate(3deg); opacity: 0.4; }
    50% { transform: translate(-5px, 12px) rotate(-5deg); opacity: 0.8; }
    75% { transform: translate(10px, 3px) rotate(1deg); opacity: 0.5; }
}

@keyframes floatMedical8 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
    25% { transform: translate(-10px, 8px) rotate(-3deg); opacity: 0.5; }
    50% { transform: translate(7px, 14px) rotate(5deg); opacity: 0.8; }
    75% { transform: translate(-14px, 5px) rotate(-2deg); opacity: 0.6; }
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal.hidden {
    display: none;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.login-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
}

.login-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
}

.login-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-close:hover {
    color: #2c3e50;
}

.login-form {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #3498db;
}

.login-error {
    background: #fee;
    color: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-error.hidden {
    display: none;
}

.login-submit {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
}

/* Hide main app initially */
.main-application {
    display: none;
}

.main-application.authenticated {
    display: block;
    /* Ensure no momentum scrolling interference */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
}

/* Override body scroll behavior when in main app */
body:has(.main-application.authenticated) {
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
}

/* Ensure main app panels have normal scrolling */
.main-application .left-panel,
.main-application .right-panel,
.main-application .logs-content {
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
}

.landing-page.authenticated {
    display: none;
}

/* Logout button */
.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.6;
        max-width: 100%;
        text-align: center;
        padding: 0 16px;
        font-weight: 500;
    }
    
    .hero-subtitle br {
        margin-bottom: 16px;
    }
    
    .features-title {
        font-size: 1.875rem;
        margin-bottom: 48px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 16px 32px;
        margin-top: 24px;
    }
    
    .hero-medical-animation {
        margin-top: 32px;
    }
    
    .medical-animation-container {
        max-width: 700px;
        height: 300px;
    }
    
    .heartbeat-line {
        width: 400px;
        height: 90px;
    }
    
    .medical-icon-float {
        font-size: 1.6rem;
    }
    
    .testimonials-section {
        padding: 40px 16px;
    }
    
    .testimonials-title {
        font-size: 1.875rem;
        margin-bottom: 12px;
    }
    
    .testimonials-subtitle {
        font-size: 1rem;
        margin-bottom: 48px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 30px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features-section {
        padding: 40px 16px;
    }
    
    .features-grid {
        gap: 24px;
        max-width: 100%;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .privacy-section {
        padding: 40px 16px;
    }
    
    .privacy-icons {
        gap: 16px;
    }
    
    .header-container {
        padding: 16px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .login-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .process-section {
        padding: 40px 16px;
    }
    
    .process-title {
        font-size: 1.875rem;
        margin-bottom: 12px;
    }
    
    .process-subtitle {
        font-size: 1rem;
        margin-bottom: 48px;
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    

    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    

    
    .contact-form-container {
        padding: 24px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
} 

/* Notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ====== PRICING SECTION ====== */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
}

/* Common Features */
.common-features {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.common-features h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #e6fffa;
    border-color: #10b981;
    transform: translateY(-2px);
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

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

.pricing-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.pricing-card.featured:hover {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.featured-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 20px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    margin-left: 4px;
}

.price-period {
    font-size: 1rem;
    color: #9ca3af;
    margin-left: 4px;
}

.plan-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.price-comparison {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.price-original {
    font-size: 1.125rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.savings-text {
    color: #059669;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-align: center;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 0.95rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    margin-right: 12px;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card .pricing-btn.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.pricing-card .pricing-btn.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.4);
}

.pricing-card .pricing-btn.btn-secondary {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    border: 1px solid #d1d5db;
}

.pricing-card .pricing-btn.btn-secondary:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 48px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Pricing */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .common-features {
        margin: 40px 0;
        padding: 24px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .faq-item {
        padding: 20px;
    }
}

/* Section Navigation Responsive Design */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 140px;
        left: 20px;
    }
    
    .nav-link span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .section {
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .welcome-title {
        font-size: 3rem;
    }
    
    .welcome-section .section-container {
        gap: 50px;
    }
    
    .welcome-animation {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        left: -180px;
        transition: left 0.3s ease;
        z-index: 1001;
        width: 160px;
    }
    
    .sidebar-nav.open {
        left: 20px;
    }
    
    .nav-link span {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .header-container {
        padding: 15px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .login-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .welcome-subtitle {
        font-size: 1.125rem;
    }
    
    .welcome-section .section-container {
        gap: 40px;
    }
    
    .welcome-animation {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .process-steps {
        flex-direction: column;
        gap: 24px;
    }
    
    .process-step {
        min-width: 100%;
        max-width: 100%;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 12px 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Section-specific styling */
.how-it-works-section {
    background: #f9fafb;
}

.features-section {
    background: #ffffff;
}

.testimonials-section {
    background: #f3f4f6;
}

.pricing-section {
    background: #ffffff;
}

/* Contact Section */
.contact-section {
    background: #f9fafb;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}



.contact-form-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}



.field-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    max-width: 100%;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

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

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.notification-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.notification-message {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.notification-icon {
    font-size: 1.1rem;
}

.form-actions {
    margin-top: 32px;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.contact-message {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.contact-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.contact-message .message-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-message h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-message.success h4 {
    color: #166534;
}

.contact-message.error h4 {
    color: #dc2626;
}

.contact-message p {
    color: #6b7280;
    margin: 0;
}

.faq-section {
    background: #ffffff;
}

/* FAQ Section specific styling */
.privacy-settings {
    margin-top: 80px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.privacy-settings h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.privacy-settings p {
    color: #6b7280;
    margin-bottom: 24px;
}

.privacy-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.privacy-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Ensure sections don't have fixed heights on mobile */
    .section {
        min-height: auto;
        padding: 60px 20px;
    }
    
    /* Allow natural scrolling behavior on mobile */
    .landing-page {
        overflow-y: auto;
        height: auto;
    }
    
    /* Disable momentum scrolling animations on mobile */
    .section {
        scroll-snap-align: none;
    }
}

/* Scroll Navigation Buttons */
.scroll-navigation {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(0) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.scroll-btn:active {
    transform: translateY(0) scale(0.95);
}

.scroll-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn svg {
    width: 20px;
    height: 20px;
}

/* Different reveal conditions for each button */
.scroll-to-top.visible {
    transform: translateY(0);
}

.scroll-to-bottom.visible {
    transform: translateY(0);
}

/* Landing page styles */