/* Restored from original frontend/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #020617;
    color: #e2e8f0;
    line-height: 1.8; /* Increased for better readability */
    font-size: 18px; /* Larger base font size for elderly users */
    -webkit-text-size-adjust: 100%; /* Prevent text scaling issues on iOS */
}

/* Enhanced accessibility for elderly users */
html {
    scroll-behavior: smooth;
}

/* Focus styles for keyboard navigation */
:focus {
    outline: 3px solid #34d399;
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 3px;
}

/* Improve selection contrast */
::selection {
    background-color: rgba(52, 211, 153, 0.5);
    color: #022c22;
}

/* Section headings */
.section-head {
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #ecfdf5;
}

.section-subtitle {
    margin-top: 8px;
    color: #94a3b8;
    max-width: 760px;
}

/* This part is use for layout*/
.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

/* This part is for the header */
.header {
    position: sticky;
    top: 0;
    background: #020617;
    border-bottom: 1px solid #1e293b;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #020617;
}

.logo-title {
    font-weight: 600;
    color: #a7f3d0;
}

.logo-description {
    font-size: 12px;
    color: #94a3b8;
}

/* This part is mainly for the navigation bar and items */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: #34d399;
}

/* This is for button features - Enhanced for elderly users */
.btn-primary,
.btn-secondary,
.btn-outline {
    min-height: 56px; /* Minimum touch target size for elderly users */
    min-width: 120px;
    padding: 16px 24px;
    font-size: 18px; /* Larger text for better readability */
    font-weight: 600;
    border-radius: 12px; /* Rounded corners for easier interaction */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #34d399;
    color: #022c22;
    border: 2px solid #34d399;
}

.btn-primary:hover {
    background: #059669; 
    border-color: #059669;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
}

.btn-secondary {
    border: 2px solid #0ea5e9;
    color: #131313;
    background: #0ea5e9;        
}

.btn-secondary:hover {
  background-color: #0284c7; 
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    border: 2px solid #34d399;
    color: #a7f3d0;
    background: transparent;
}

.btn-outline:hover {
    background-color: #34d399; 
    color: #022c22;           
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
}

/* Top main section of the homepage */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 100px 0;
    align-items: center;
}

/* Prevent long text from squeezing the slider column */
.hero-left, .hero-right {
    min-width: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #ecfdf5;
}

.hero-text {
    margin-top: 20px;
    color: #94a3b8;
    max-width: 520px;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* Sample statistics only */
.stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: #020617;
    border: 1px solid #1e293b;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #020617;
    border: 1px solid #1e293b;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.carousel {
    position: relative;
    width: 100%;
    padding: 0 52px;
}

.carousel-window {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #34d399;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.arrow.left {
    left: 8px;
}

.arrow.right {
    right: 8px;
}

/* Slider sizing: show 3 cards without overflow */
.carousel-track .card {
    flex: 0 0 calc((100% - 32px) / 3);
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 30px; padding: 60px 0; }
    .carousel-track .card { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 560px) {
    .carousel { padding: 0 44px; }
    .carousel-track .card { flex-basis: 100%; }
}

/* Live map section */
.map-section {
    padding: 40px 0 90px;
}

.map-controls {
    margin: 14px 0 16px;
    display: grid;
    gap: 10px;
}

.map-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-search-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 12px 14px;
    border-radius: 12px;
    color: #e2e8f0;
    outline: none;
}

.map-search-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.map-search-btn {
    background: #34d399;
    color: #022c22;
    border: 1px solid #34d399;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.map-search-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.map-search-result {
    color: #94a3b8;
    font-size: 14px;
}

.aqi-map {
    height: 420px;
    border-radius: 14px;
    border: 1px solid #1e293b;
    overflow: hidden;
    background: #0b1220;
}

@media (max-width: 768px) {
    .aqi-map { height: 360px; }
    .map-search { flex-direction: column; align-items: stretch; }
}

/* Alerts & Forecast page */
.page-hero {
    padding: 40px 0 10px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: #ecfdf5;
}

.alerts-section,
.forecast-section {
    padding: 30px 0 70px;
}

.muted {
    color: #94a3b8;
}

.good-message {
    border: 1px solid #1e293b;
    background: rgba(52, 211, 153, 0.06);
    padding: 16px 18px;
    border-radius: 14px;
    color: #e2e8f0;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.alert-group {
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: #0b1220;
    padding: 16px;
    min-width: 0;
}

.alert-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.alert-group h3 {
    font-size: 16px;
    color: #ecfdf5;
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #1e293b;
}

.pill-orange { background: rgba(234, 179, 8, 0.12); color: #fbbf24; }
.pill-red { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.pill-purple { background: rgba(168, 85, 247, 0.12); color: #c4b5fd; }
.pill-pink { background: rgba(236, 72, 153, 0.12); color: #f9a8d4; }

.alert-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow: auto;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #020617;
}

.alert-item-name {
    font-size: 14px;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-item-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.alert-item-aqi {
    font-weight: 700;
    color: #34d399;
    min-width: 34px;
    text-align: right;
}

.alert-item-link {
    color: #a7f3d0;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #1e293b;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f172a;
}

.alert-item-link:hover {
    background: #111c33;
}

.forecast-controls {
    margin: 14px 0 16px;
    display: grid;
    gap: 10px;
}

.forecast-card {
    border: 1px solid #1e293b;
    border-radius: 16px;
    background: #0b1220;
    padding: 18px;
}

.forecast-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
}

.forecast-place {
    font-size: 18px;
    font-weight: 700;
    color: #ecfdf5;
}

.forecast-meta {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 13px;
}

.forecast-aqi {
    text-align: right;
    border: 1px solid #1e293b;
    background: #020617;
    padding: 12px 14px;
    border-radius: 14px;
    min-width: 160px;
}

.forecast-aqi-label {
    color: #94a3b8;
    font-size: 12px;
}

.forecast-aqi-value {
    font-size: 28px;
    font-weight: 800;
    color: #34d399;
    line-height: 1.1;
    margin-top: 4px;
}

.forecast-aqi-status {
    margin-top: 4px;
    color: #e2e8f0;
    font-size: 13px;
}

.forecast-bottom {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.forecast-trend {
    color: #e2e8f0;
    font-size: 14px;
}

.forecast-days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.forecast-day {
    border: 1px solid #1e293b;
    background: #020617;
    padding: 12px;
    border-radius: 14px;
}

.forecast-day-date {
    color: #94a3b8;
    font-size: 12px;
}

.forecast-day-val {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #e2e8f0;
}

.forecast-day-range {
    margin-top: 6px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .alerts-grid { grid-template-columns: 1fr; }
    .forecast-top { grid-template-columns: 1fr; }
    .forecast-aqi { text-align: left; }
}

@media (max-width: 560px) {
    .page-title { font-size: 32px; }
    .forecast-days { grid-template-columns: 1fr; }
}

/* Compare page: coming soon */
.coming-soon-section {
    padding: 60px 0 90px;
}

.coming-soon-card {
    max-width: 900px;
}

.coming-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    color: #ecfdf5;
    margin-bottom: 14px;
}

.coming-text {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.coming-text strong {
    color: #a7f3d0;
}

.coming-image-wrapper {
    margin-top: 24px;
    max-width: 380px;
}

.coming-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #1e293b;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Home: help call-to-action above footer */
.help-cta {
    padding: 40px 0 30px;
    border-top: 1px solid #020617;
    border-bottom: 1px solid #020617;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.98));
}

.help-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.help-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #ecfdf5;
}

.help-cta-text {
    margin-top: 6px;
    color: #cbd5e1;
    max-width: 540px;
    font-size: 14px;
}

.help-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .help-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------About Us page------------------------------------*/

.about-hero {
    display: flex !important;
    align-items: center; 
    gap: 40px;           
    margin-top: 10px;
    padding-top: 20px;
    padding-bottom: 80px;
}

.about-hero .hero-left, 
.about-hero .hero-right {
    flex: 1;              
}

.about-hero .hero-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: #ecfdf5;
    line-height: 1.15;
}

.about-kicker {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.about-hero .hero-right h3 {
    text-align: justify;
    text-justify: inter-word;
    margin: 0;            
    line-height: 1.8;
    color: #e2e8f0;
    font-weight: 400;
}

.about-panel {
    border: 1px solid #1e293b;
    border-radius: 18px;
    background: #0b1220;
    padding: 22px;
}

.about-title {
    font-size: 22px;
    color: #ecfdf5;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.about-text {
    margin-top: 12px;
    color: #cbd5e1;
    line-height: 1.85;
    font-size: 14px;
    text-align: justify;
    text-justify: inter-word;
}

.about-text strong {
    color: #a7f3d0;
    font-weight: 700;
}

.team-photo {
    width: 100%;          
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid #1e293b;
    margin-top: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .about-hero {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 50px;
    }
    .about-hero .hero-left h1 { font-size: 34px; }
}

/* About page: Mission & Vision section (match About our team layout) */
.mv-hero {
    padding-top: 0;
    padding-bottom: 90px;
}

.mv-visual {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.mv-visual-card {
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: #0b1220;
    padding: 16px;
}

.mv-visual-card-alt {
    background: #0f172a;
}

.mv-visual-title {
    font-weight: 800;
    color: #ecfdf5;
    font-size: 16px;
}

.mv-visual-subtitle {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.mv-inline-list {
    margin-top: 10px;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #e2e8f0;
}

.about-hero .hero-right h3 strong {
    color: #a7f3d0;
    font-weight: 700;
}

/* --------------------------------------Contact Us------------------------------------*/
.contact-section { padding: 80px 0; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h3 { color: #ecfdf5; font-size: 24px; margin-bottom: 20px; }
.contact-info p { color: #94a3b8; margin-bottom: 20px; }

/* Grid Form Layout */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-form form { display: flex; flex-direction: column; gap: 20px; }

.contact-form input, 
.contact-form textarea {
    background: #0f172a; 
    border: 1px solid #1e293b;
    padding: 15px;
    border-radius: 8px;
    color: white;
    width: 100%;
}

.file-upload { display: flex; flex-direction: column; gap: 10px; color: #94a3b8; font-size: 14px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* Contact page hero with background image */
.contact-hero {
    position: relative;
    min-height: 220px;
    background-image: url("monash-entrance.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 50px 0 40px;
}

.contact-hero-box {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.contact-hero .section-title {
    font-size: 32px;
}

.contact-hero .section-subtitle {
    max-width: 520px;
}

/*-----------------------------------------------------Information Page---------------------------------------------------- */
/* --------------------------------------Information page------------------------------------*/
.info-page {
    padding: 60px 20px 100px;
}

.info-intro {
    margin-bottom: 40px;
}

.info-title {
    font-size: 40px;
    color: #ecfdf5;
    margin-bottom: 12px;
}

.info-subtitle {
    max-width: 1100px;
    color: #94a3b8;
    font-size: 18px;
}

.aqi-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aqi-info-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: center;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 18px;
    padding: 24px;
}

.aqi-badge {
    width: 280px;
    text-align: center;
    font-weight: 700;
    color: rgb(0, 0, 0);
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 16px;
}

.aqi-info-content h2 {
    font-size: 28px;
    color: #f8fafc;
    margin-bottom: 10px;
}

.aqi-info-content p {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.good {
    background-color: #9BCB52;
}

.moderate {
    background-color: #FDD64C;
}

.sensitive {
    background-color: #FF9B57;
}

.unhealthy {
    background-color: #F65F5F;
}

.very-unhealthy {
    background-color: #A16FB6;
}

.hazardous {
    background-color: #A87383;
}

@media (max-width: 768px) {
    .aqi-info-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aqi-badge {
        width: 100%;
    }

    .info-title {
        font-size: 30px;
    }

    .aqi-info-content h2 {
        font-size: 22px;
    }

    .aqi-info-content p,
    .info-subtitle {
        font-size: 16px;
    }
}

/* --------------------------------------Credits------------------------------------ */

.credits{
    margin-top:0px;
    padding:40px;
    background:#0f172a;
    border-radius:18px;
    border:1px solid #1e293b;
}

.credits-title{
    font-size:28px;
    color:#f8fafc;
    margin-top:80px;
    margin-bottom:20px;
}

.credits h2{
    color:#f8fafc;
    font-size:24px;
    margin-bottom:20px;
}

.credits-list{
    list-style:none;
    padding:0;
}

.credits-list li{
    color:#cbd5e1;
    font-size:16px;
    margin-bottom:12px;
    line-height:1.6;
}

.credits-list a{
    color:#34d399;
    text-decoration:none;
}

.credits-list a:hover{
    text-decoration:underline;
}

/* ---------------- Comparison Page ---------------- */

.comparison-section {
    padding: 60px 0 90px;
}

.comparison-controls {
    margin: 40px 0;
    background: #0b1220;
    border: 1px solid #1e293b;
    border-radius: 18px;
    padding: 24px;
}

.city-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.city-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-selector label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

.city-dropdown {
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.city-dropdown:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.city-dropdown option {
    background: #0f172a;
    color: #e2e8f0;
}

.city-info {
    min-height: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.vs-text {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #34d399;
    padding: 0 20px;
}

.comparison-controls .btn-primary,
.comparison-controls .btn-secondary {
    margin-right: 12px;
    margin-top: 10px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 18px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
}

.comparison-results {
    background: #0b1220;
    border: 1px solid #1e293b;
    border-radius: 18px;
    padding: 24px;
    margin-top: 30px;
}

.results-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

.results-header h2 {
    font-size: 24px;
    color: #ecfdf5;
    margin-bottom: 8px;
}

.comparison-summary {
    color: #94a3b8;
    font-size: 14px;
}

.comparison-summary .error {
    color: #f87171;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.result-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 18px;
}

.result-card h3 {
    color: #ecfdf5;
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e293b;
}

.comparison-data {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}

.comparison-table th {
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table td {
    color: #e2e8f0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 900px) {
    .city-selectors {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .vs-text {
        order: 2;
        padding: 10px 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Elderly-Friendly AQI Modal ---------------- */

.elderly-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(4px);
}

.elderly-modal-content {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    margin: 4% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 24px;
    border: 2px solid #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.elderly-modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    background: #475569;
    color: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.elderly-modal-close:hover {
    background: #64748b;
    transform: rotate(90deg);
}

.elderly-modal-header {
    padding: 32px 32px 20px;
    border-bottom: 1px solid #334155;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
}

.elderly-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #ecfdf5;
    margin-bottom: 8px;
    line-height: 1.2;
}

.elderly-modal-subtitle {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.5;
}

.elderly-modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Loading spinner */
.status-loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 4px solid #334155;
    border-top: 4px solid #34d399;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-loading p {
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 500;
}

/* AQI Display */
.aqi-display-large {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border-radius: 20px;
    border: 2px solid #334155;
    margin-bottom: 24px;
}

.aqi-value {
    font-size: 72px;
    font-weight: 800;
    color: #34d399;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.aqi-label {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 12px;
}

.aqi-status {
    font-size: 24px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 999px;
    display: inline-block;
}

.aqi-status.status-good {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid #34d399;
}

.aqi-status.status-moderate {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid #eab308;
}

.aqi-status.status-unhealthy-for-unhealthy-groups {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid #f97316;
}

.aqi-status.status-unhealthy {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.aqi-status.status-hazardous {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid #a855f7;
}

/* Location Info */
.location-info {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}

/* Health Recommendation */
.health-recommendation {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.health-recommendation h3 {
    color: #34d399;
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-recommendation p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.elderly-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.refresh-btn {
    background: #3b82f6;
    color: white;
}

.refresh-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.view-map-btn {
    background: #8b5cf6;
    color: white;
}

.view-map-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.close-btn {
    background: #10b981;
    color: white;
}

.close-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Location Error */
.location-error {
    text-align: center;
    padding: 32px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.location-error h3 {
    color: #ef4444;
    font-size: 24px;
    margin-bottom: 12px;
}

.location-error p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.manual-input {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.elderly-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.elderly-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.try-again-btn {
    background: #3b82f6;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.try-again-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Modal Footer */
.elderly-modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #334155;
    background: #0f172a;
}

.safety-note {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.safety-note strong {
    color: #ef4444;
}

/* Enhanced Mobile Responsive Design for Elderly Modal */
@media (max-width: 768px) {
    .elderly-modal {
        background-color: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(8px);
    }
    
    .elderly-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        animation: modalSlideUp 0.4s ease-out;
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .elderly-modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        background: #475569;
        color: white;
        width: 48px;
        height: 48px;
        font-size: 28px;
        z-index: 1001;
    }
    
    .elderly-modal-header {
        padding: 70px 20px 20px;
        border-bottom: 2px solid #475569;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .elderly-modal-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .elderly-modal-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .elderly-modal-body {
        padding: 24px 20px;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }
    
    .aqi-value {
        font-size: 64px;
    }
    
    .aqi-label {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .aqi-status {
        font-size: 22px;
        padding: 10px 28px;
    }
    
    .location-info {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .info-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
        margin: 0 auto;
    }
    
    .info-text {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .health-recommendation {
        padding: 18px;
        border-radius: 14px;
        margin-bottom: 20px;
    }
    
    .health-recommendation h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .health-recommendation p {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }
    
    .elderly-btn {
        padding: 20px;
        font-size: 18px;
        border-radius: 14px;
        min-height: 64px;
    }
    
    .elderly-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .manual-input {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
    }
    
    .elderly-input {
        padding: 18px;
        font-size: 18px;
        min-height: 64px;
        border-radius: 14px;
    }
    
    .try-again-btn {
        padding: 18px 32px;
        font-size: 18px;
        margin-top: 20px;
        border-radius: 14px;
        width: 100%;
        min-height: 64px;
    }
    
    .location-error {
        padding: 24px 20px;
    }
    
    .error-icon {
        font-size: 56px;
        margin-bottom: 20px;
    }
    
    .location-error h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .location-error p {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .safety-note {
        font-size: 15px;
        line-height: 1.7;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .elderly-modal-header {
        padding: 70px 16px 16px;
    }
    
    .elderly-modal-title {
        font-size: 26px;
    }
    
    .elderly-modal-subtitle {
        font-size: 15px;
    }
    
    .elderly-modal-body {
        padding: 20px 16px;
        max-height: calc(100vh - 160px);
    }
    
    .aqi-value {
        font-size: 56px;
    }
    
    .aqi-status {
        font-size: 20px;
        padding: 10px 24px;
    }
    
    .info-text {
        font-size: 17px;
    }
    
    .elderly-btn {
        padding: 18px;
        font-size: 17px;
        min-height: 60px;
    }
    
    .elderly-input {
        padding: 16px;
        font-size: 17px;
        min-height: 60px;
    }
}

/* Landscape mode optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .elderly-modal-content {
        margin: 2% auto;
        width: 95%;
        height: auto;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .elderly-modal-header {
        padding: 24px 20px 16px;
        position: relative;
    }
    
    .elderly-modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    
    .elderly-modal-body {
        max-height: 50vh;
        padding: 20px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .elderly-btn {
        padding: 16px;
        font-size: 14px;
        min-height: 52px;
    }
}

/* Enhanced Mobile Optimization for Chrome on Android/iOS */
@media (max-width: 768px) {
    .elderly-modal {
        padding: 0;
        margin: 0;
    }
    
    .elderly-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .elderly-modal-header {
        padding: 60px 16px 16px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .elderly-modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        background: rgba(71, 85, 105, 0.9);
        backdrop-filter: blur(10px);
        z-index: 101;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .elderly-modal-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .elderly-modal-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .elderly-modal-body {
        padding: 16px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
    
    .aqi-display-large {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .aqi-value {
        font-size: 56px;
    }
    
    .aqi-label {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .aqi-status {
        font-size: 18px;
        padding: 8px 16px;
    }
    
    .health-recommendation {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .health-recommendation h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .health-recommendation p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .location-info {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .info-item {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .info-text {
        font-size: 16px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }
    
    .elderly-btn {
        padding: 16px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .manual-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .elderly-input {
        padding: 14px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .try-again-btn {
        padding: 14px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .safety-note {
        font-size: 14px;
        padding: 0 8px;
    }
}

/* Extra small screens (iPhone SE, small Android phones) */
@media (max-width: 375px) {
    .elderly-modal-header {
        padding: 55px 12px 12px;
    }
    
    .elderly-modal-title {
        font-size: 22px;
    }
    
    .elderly-modal-subtitle {
        font-size: 13px;
    }
    
    .elderly-modal-body {
        padding: 12px;
    }
    
    .aqi-value {
        font-size: 48px;
    }
    
    .aqi-status {
        font-size: 16px;
        padding: 6px 14px;
    }
    
    .health-recommendation h3 {
        font-size: 17px;
    }
    
    .health-recommendation p {
        font-size: 15px;
    }
    
    .info-text {
        font-size: 15px;
    }
    
    .elderly-btn {
        padding: 14px;
        font-size: 15px;
        min-height: 52px;
    }
}

/* Ensure modal doesn't exceed viewport on mobile */
html, body {
    overflow-x: hidden;
    position: relative;
}

/* Fix for Chrome mobile address bar */
@media (max-height: 700px) and (max-width: 768px) {
    .elderly-modal-body {
        max-height: calc(100vh - 140px);
    }
}

/* Improve touch targets for mobile */
.elderly-btn, .elderly-modal-close {
    -webkit-tap-highlight-color: rgba(52, 211, 153, 0.3);
    touch-action: manipulation;
}

/* Critical fix for Chrome mobile display issues */
@media (max-width: 768px) {
    .elderly-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(2, 6, 23, 0.98);
    }
    
    .elderly-modal-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .elderly-modal-header {
        padding-top: 60px;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        z-index: 100;
    }
    
    .elderly-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        background: rgba(71, 85, 105, 0.9);
        backdrop-filter: blur(10px);
        z-index: 101;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .elderly-modal-body {
        padding-bottom: 80px;
    }
    
    /* Prevent content from being cut off */
    .aqi-display-large,
    .health-recommendation,
    .location-info {
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* Extra fix for very small screens */
@media (max-width: 360px) {
    .elderly-modal-title {
        font-size: 20px;
    }
    
    .elderly-modal-subtitle {
        font-size: 12px;
    }
    
    .aqi-value {
        font-size: 44px;
    }
    
    .health-recommendation h3 {
        font-size: 16px;
    }
    
    .health-recommendation p {
        font-size: 14px;
    }
}

/* ---------------- Footer ---------------- */

.footer{
    background:#0f172a;
    color:#ffffff;
    margin-top:80px;
    padding:50px 0 10px 0;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
    padding-bottom:20px;
}

.footer-logo{
    max-width:320px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center; 
}

.footer-logo img{
    width:120px;    
}

.footer-description{    
    font-size:15px;
    color:#cbd5e1;
    line-height:1.6;
}

.footer-links{
    display:flex;
    gap:40px;
}

.footer-column h4{
    font-size:17px;
    margin-bottom:12px;
    color:#ffffff;
}

.footer-column a{
    display:block;
    font-size:15px;
    color:#e2e8f0; 
    margin-bottom:8px;
    text-decoration:none;
}

.footer-column a:hover{
    color:#34d399;
}

.footer-bottom{
    text-align:center;
    padding:12px 0;
    font-size:14px;
    border-top:1px solid #1e293b;
    color:#cbd5e1;
}

/* =============================== */
/* Enhanced Mobile & Elderly Accessibility */
/* =============================== */

/* Ensure buttons are easily tappable on mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 60px;
        min-width: 100%;
        margin-bottom: 12px;
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons button {
        width: 100%;
    }
}

/* Improved navigation for mobile */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 12px;
        display: block;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid #334155;
    }
    
    .nav-links a:hover {
        background: rgba(52, 211, 153, 0.1);
        border-color: #34d399;
    }
    
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* Enhanced text readability for elderly users */
p, li, .section-subtitle, .muted {
    font-size: 18px;
    line-height: 1.8;
    color: #e2e8f0;
}

.section-title, .page-title, .hero-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .section-title, .page-title, .hero-title {
        font-size: 28px;
    }
    
    p, li, .section-subtitle, .muted {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Improved form elements for elderly users */
input, select, textarea, .map-search-input, .elderly-input {
    font-size: 18px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #475569;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 56px;
}

input:focus, select:focus, textarea:focus {
    border-color: #34d399;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

/* Larger map controls for mobile */
@media (max-width: 768px) {
    .map-controls button,
    .alerts-controls button {
        min-height: 60px;
        font-size: 18px;
    }
    
    .aqi-map {
        height: 400px;
    }
}

/* Enhanced alert items for mobile */
@media (max-width: 768px) {
    .alert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .alert-item-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .alert-item-aqi {
        font-size: 24px;
    }
    
    .alert-item-link {
        font-size: 16px;
        padding: 10px 16px;
    }
}

/* Improved spacing for elderly-friendly scrolling */
section {
    padding: 40px 0;
}

@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }
}

/* Enhanced contrast for better visibility */
.hero-title, .page-title, .section-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Better focus states for keyboard navigation */
a:focus, button:focus, input:focus {
    outline: 3px solid #34d399;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Larger clickable areas for interactive elements */
.card, .alert-group, .forecast-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .alert-group:hover, .forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Improved readability for data tables */
table th, table td {
    padding: 16px;
    font-size: 16px;
    border-color: #475569;
}

@media (max-width: 768px) {
    table th, table td {
        padding: 12px;
        font-size: 14px;
    }
}

/* Enhanced color contrast for better accessibility */
.hero-text, .section-subtitle, .muted {
    color: #cbd5e1; /* Brighter color for better contrast */
}

/* Larger font sizes for important information */
.aqi-value {
    font-size: 64px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .aqi-value {
        font-size: 48px;
    }
}

/* Better mobile carousel */
@media (max-width: 768px) {
    .carousel {
        padding: 0 40px;
    }
    
    .arrow {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .carousel-track .card {
        padding: 20px;
    }
}

/* Improved footer for mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column a {
        font-size: 16px;
        padding: 8px 0;
    }
}

/* Enhanced loading states */
.loading, .status-loading {
    font-size: 18px;
    color: #34d399;
    padding: 40px;
    text-align: center;
}

.spinner {
    border-width: 6px;
    width: 70px;
    height: 70px;
}

/* Better error messages */
.error-message {
    font-size: 18px;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Improved icon visibility */
.info-icon, .schedule-icon, .error-icon {
    font-size: 32px;
}

@media (max-width: 768px) {
    .info-icon, .schedule-icon, .error-icon {
        font-size: 28px;
    }
}

/* Enhanced contrast for pill indicators */
.pill {
    min-width: 40px;
    height: 32px;
    font-size: 16px;
    font-weight: 700;
}

/* Better mobile form layout */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Improved scrollbar for elderly users */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Enhanced button hover states */
.btn-primary:hover, .btn-secondary:hover, .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Better focus for elderly users with reduced dexterity */
*:focus-visible {
    outline: 4px solid #34d399;
    outline-offset: 4px;
}

