/* Health Genie 2.0 CSS Styles */

/* CSS Variables */
:root {
    --primary-color: #00b894;
    --primary-dark: #00a381;
    --secondary-color: #0984e3;
    --accent-color: #6c5ce7;
    --danger-color: #d63031;
    --warning-color: #fdcb6e;
    --success-color: #00b894;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* 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: var(--text-dark);
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 15px 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover,
.nav-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
}

.hero h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
    transform: translateY(-3px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Info Section */
.info-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.info-section h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.info-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #ffc107;
}

.disclaimer-icon {
    font-size: 2rem;
}

.disclaimer-content h4 {
    color: #856404;
    margin-bottom: 8px;
}

.disclaimer-content p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Form Styles */
.assessment-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.assessment-progress {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 25%;
}

.assessment-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.assessment-step.active {
    display: block;
}

.assessment-step h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: #e8f5e9;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.symptom-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.symptom-category {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.symptom-category h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.step-description {
    color: var(--text-medium);
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Symptom Checker Styles */
.symptom-checker-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.quick-symptoms h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.symptom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.symptom-btn:hover {
    border-color: var(--primary-color);
    background: #e8f5e9;
}

.symptom-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.symptom-icon {
    font-size: 2rem;
}

.symptom-duration {
    margin-bottom: 30px;
}

.symptom-duration h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.symptom-duration select {
    width: 100%;
    max-width: 300px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: var(--bg-white);
}

.analysis-results {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.analysis-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.severity-badge {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.severity-high {
    background: #fee2e2;
    color: #dc2626;
}

.severity-medium {
    background: #fef3c7;
    color: #d97706;
}

.severity-low {
    background: #d1fae5;
    color: #059669;
}

/* Education Section */
.education-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.edu-tab {
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.edu-tab:hover,
.edu-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
}

.education-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.edu-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.edu-content.active {
    display: block;
}

.edu-content h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.edu-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.edu-card.danger {
    border-left-color: var(--danger-color);
    background: #fef2f2;
}

.edu-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

.symptom-info {
    display: grid;
    gap: 25px;
}

.symptom-warning {
    background: #fef2f2;
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border-left: 4px solid var(--danger-color);
}

.symptom-warning h4 {
    color: #dc2626;
    margin-bottom: 15px;
}

.symptom-warning ul {
    list-style: none;
}

.symptom-warning li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.symptom-warning li::before {
    content: "🚨";
    position: absolute;
    left: 0;
}

.symptom-caution {
    background: #fffbeb;
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border-left: 4px solid var(--warning-color);
}

.symptom-caution h4 {
    color: #d97706;
    margin-bottom: 15px;
}

.symptom-caution ul {
    list-style: none;
}

.symptom-caution li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.symptom-caution li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

.symptom-mild {
    background: #ecfdf5;
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border-left: 4px solid var(--success-color);
}

.symptom-mild h4 {
    color: #059669;
    margin-bottom: 15px;
}

.symptom-mild ul {
    list-style: none;
}

.symptom-mild li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.symptom-mild li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

.preventive-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border-left: 4px solid var(--secondary-color);
}

.tip-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Profile Section */
.profile-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--bg-light);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-info h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.profile-info p {
    color: var(--text-medium);
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-data {
    margin-top: 30px;
}

.profile-section {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin-bottom: 20px;
}

.profile-section h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.recommendations-list {
    display: grid;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-text h5 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.recommendation-text p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.privacy-notice {
    background: #f0fdf4;
    border-radius: var(--border-radius-sm);
    padding: 25px;
    border: 1px solid #86efac;
    margin-top: 30px;
}

.privacy-notice h4 {
    color: #166534;
    margin-bottom: 10px;
}

.privacy-notice p {
    color: #166534;
    font-size: 0.95rem;
}

/* Results Styles */
.results-container {
    margin-top: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.result-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin-bottom: 20px;
}

.result-card.high-risk {
    border-left: 4px solid var(--danger-color);
    background: #fef2f2;
}

.result-card.medium-risk {
    border-left: 4px solid var(--warning-color);
    background: #fffbeb;
}

.result-card.low-risk {
    border-left: 4px solid var(--success-color);
    background: #ecfdf5;
}

.result-card h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card p {
    color: var(--text-medium);
    margin-bottom: 15px;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
}

.action-icon {
    font-size: 1.2rem;
}

.action-text {
    flex: 1;
}

.action-text h5 {
    color: var(--text-dark);
    margin-bottom: 3px;
}

.action-text p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a2e);
    color: white;
    padding: 50px 30px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .assessment-container,
    .symptom-checker-container,
    .education-content,
    .profile-container {
        padding: 25px 20px;
    }
    
    .symptom-categories {
        grid-template-columns: 1fr;
    }
    
    .symptom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .disclaimer-banner {
        display: none;
    }
    
    .section {
        display: block !important;
    }
    
    body {
        background: white;
    }
    
    .btn {
        display: none;
    }
}
