/* CSS Custom Properties */
:root {
    --primary-color: #7868E6;
    --secondary-color: #B8B5FF;
    --accent-color: #E4FBFF;
    --background-color: #EDEEF7;
    --danger-color: #FFB4B4;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(184, 181, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 104, 230, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Paper Texture Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 4px
        );
    pointer-events: none;
    z-index: -1;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo-img {
    max-height: 120px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header__logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.header__text {
    flex: 1;
    min-width: 0;
}

.header__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.header__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--accent-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    display: none; /* Hidden by default */
    transform: translateY(0);
    transition: transform 0.3s ease;
    margin-bottom: 60px;
}

.bottom-nav__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    min-width: 60px;
    position: relative;
}

.bottom-nav__item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.bottom-nav__item.active {
    color: var(--primary-color);
    background: var(--accent-color);
}

.bottom-nav__item.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.bottom-nav__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.bottom-nav__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.bottom-nav__item.active .bottom-nav__icon {
    transform: scale(1.1);
}

.bottom-nav__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* Desktop Navigation (hidden on mobile) */
.desktop-nav {
    display: none;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.desktop-nav__list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.desktop-nav__item {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.desktop-nav__button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.desktop-nav__button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.desktop-nav__button.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.desktop-nav__icon {
    font-size: 1.2rem;
}

/* Main Content */
.main {
    padding: 2rem 0 5rem 0; /* Extra padding bottom for bottom nav */
    min-height: calc(100vh - 200px);
}

/* Ensure bottom nav stays visible on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section__title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Pain Scale */
.pain-scale {
    margin-bottom: 2rem;
}

.pain-scale__header {
    text-align: center;
    margin-bottom: 2rem;
}

.pain-scale__header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pain-scale__description {
    color: var(--text-light);
    font-size: 1rem;
}

.pain-scale__scale {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pain-scale__button {
    flex: 1;
    min-width: 60px;
    height: 60px;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-scale__button:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.pain-scale__button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pain-scale__button.pain-high {
    border-color: var(--danger-color);
}

.pain-scale__button.pain-high.active {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.pain-scale__current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pain-scale__label {
    font-weight: 500;
    color: var(--text-light);
}

.pain-scale__value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Pain History */
.pain-history {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
}

.pain-history h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.pain-history__chart {
    background: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chart-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 100%;
    padding: 1rem 0;
}

.chart-bar {
    width: 20px;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    margin: 0 2px;
    position: relative;
    transition: var(--transition);
}

.chart-bar:hover {
    background: var(--secondary-color);
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
}

.pain-history__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
}

.stat-item__value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-item__label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Care Checklist */
.care-checklist__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.care-item__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.care-item__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.care-item__priority {
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.care-item__priority svg {
    width: 100%;
    height: 100%;
}

.care-item__priority--high svg {
    color: #f44336;
}

.care-item__priority--medium svg {
    color: #ff9800;
}

.care-item__priority--low svg {
    color: #4caf50;
}

.care-checklist__date {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.care-checklist__progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 40px;
}

.care-checklist__items {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.care-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.care-item:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

.care-item.completed {
    background: rgba(120, 104, 230, 0.1);
    border-left: 4px solid var(--primary-color);
}

.care-item__checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.care-item__checkbox.checked {
    background: var(--primary-color);
}

.care-item__checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
}

.care-item__content {
    flex: 1;
}

.care-item__title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.care-item__description {
    font-size: 0.9rem;
    color: var(--text-light);
}

.care-item__time {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}


/* FAQ */
.faq {
    display: grid;
    gap: 1rem;
}

/* FAQ Search */
.faq-search {
    margin-bottom: 2rem;
}

.faq-search__wrapper {
    position: relative;
}

.faq-search__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.faq-search__input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.1);
    transform: translateY(-1px);
}

.faq-search__icon {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-search__input-wrapper:focus-within .faq-search__icon {
    color: var(--primary-color);
}

.faq-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: var(--font-family);
}

.faq-search__input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.faq-search__clear {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.faq-search__clear:hover {
    color: var(--text-dark);
    background: var(--accent-color);
}

.faq-search__clear.show {
    opacity: 1;
    transform: scale(1);
}

.faq-search__results {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

.faq-search__count {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

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

/* Search Highlight */
.search-highlight {
    background: linear-gradient(120deg, #ffd700 0%, #ffed4e 100%);
    color: var(--text-dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
    animation: highlightPulse 0.3s ease;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.faq-item {
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item__question {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item__question:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.faq-item__question.active {
    background: var(--primary-color);
    color: var(--white);
}

.faq-item__icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item__question.active .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item__answer.active {
    padding: 1rem;
    max-height: 500px;
}

.faq-item__answer p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn--primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--secondary {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn--danger:hover:not(:disabled) {
    background: #ff9999;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--warning {
    background: #ffd700;
    color: var(--text-dark);
}

.btn--warning:hover:not(:disabled) {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    margin-bottom: 100px;
}

.footer__text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.loading.show {
    display: flex;
}

.loading__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading__text {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
    position: relative;
}

.notification--success {
    border-left-color: #4caf50;
}

.notification--error {
    border-left-color: var(--danger-color);
}

.notification--warning {
    border-left-color: #ffd700;
}

.notification__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification__title {
    font-weight: 500;
    color: var(--text-dark);
}

.notification__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification__close:hover {
    color: var(--text-dark);
}

.notification__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.notification__close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.notification__message {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

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

/* Responsive Design */
@media (min-width: 769px) {
    /* Desktop Navigation */
    .bottom-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .main {
        padding: 2rem 0;
        padding-bottom: 2rem;
    }
    
    .bottom-nav__container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Show bottom navigation on mobile */
    .bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(0) !important;
        z-index: 1000 !important;
    }
    
    .header__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header__logo-img {
        max-height: 90px;
        max-width: 140px;
    }
    
    .header__title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .pain-scale__scale {
        gap: 0.25rem;
    }
    
    .pain-scale__button {
        min-width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .care-checklist__header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .care-checklist__progress {
        justify-content: space-between;
    }
    
    .progress-bar {
        width: 150px;
    }
    
    
    .btn {
        width: 100%;
    }
    
    .pain-history__stats {
        grid-template-columns: 1fr;
    }
    
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    /* Bottom nav adjustments for mobile */
    .bottom-nav {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .bottom-nav__item {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .bottom-nav__label {
        font-size: 0.7rem;
    }
    
    .bottom-nav__icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header__content {
        gap: 0.75rem;
    }
    
    .header__logo-img {
        max-height: 70px;
        max-width: 110px;
    }
    
    .header__title {
        font-size: 1.8rem;
    }
    
    .header__subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .pain-scale__scale {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
    
    .pain-scale__button {
        width: 100%;
        height: 50px;
    }
    
    .care-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .care-item__checkbox {
        align-self: flex-start;
    }
    
    
    .contact-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notification-container {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    /* FAQ Search responsive */
    .faq-search__input-wrapper {
        padding: 0.5rem 0.75rem;
    }
    
    .faq-search__icon {
        width: 18px;
        height: 18px;
        margin-right: 0.5rem;
    }
    
    .faq-search__input {
        font-size: 0.9rem;
    }
    
    .faq-search__results {
        margin-top: 0.5rem;
        padding: 0.4rem 0.75rem;
    }
    
    .faq-search__count {
        font-size: 0.8rem;
    }
    
    /* Bottom nav adjustments for very small screens */
    .bottom-nav__item {
        min-width: 45px;
        padding: 0.4rem;
    }
    
    .bottom-nav__label {
        font-size: 0.65rem;
    }
    
    .bottom-nav__icon {
        width: 18px;
        height: 18px;
    }
}

/* Print Styles */
@media print {
    .navigation,
    .desktop-nav,
    .bottom-nav,
    .footer,
    .loading,
    .notification-container {
        display: none;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #4169E1;
        --text-dark: #000000;
        --text-light: #333333;
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .card {
        border: 2px solid var(--primary-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading__spinner {
        animation: none;
    }
}
