body {
        margin: 0;
        font-family: 'Segoe UI', sans-serif;
        background-color: #f8faff;
        background-image: radial-gradient(at 0% 0%, hsla(221,100%,90%,1) 0, transparent 50%), 
                        radial-gradient(at 50% 0%, hsla(220,100%,95%,1) 0, transparent 50%);
        background-attachment: fixed;
        transition: all 0.5s ease;
        color: #0052FF;
        text-align: center;
        }
@keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
body.dark-mode {
        background-color: #050505 !important;
        background-image: radial-gradient(at 0% 0%, hsla(221, 100%, 10%, 1) 0, transparent 50%), 
                        radial-gradient(at 50% 0%, hsla(220, 100%, 5%, 1) 0, transparent 50%) !important;
        color: #ffffff !important;
}
body.dark-mode h1 {
    color: #0052FF;
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.5), 0 0 20px rgba(0, 82, 255, 0.2);
}

body.dark-mode .doctor-card {
        background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 82, 255, 0.3) !important;
        backdrop-filter: blur(10px);
}

body.dark-mode .doctor-card h2, 
body.dark-mode .doctor-card p {
    color: #ffffff !important;
}

body.dark-mode input, 
body.dark-mode textarea {
    background: #1a1a1a !important;
    color: white !important;
    border: 1px solid #0052FF !important;
}

body.dark-mode .chat-window {
    background: #121212 !important;
    border: 1px solid #0052FF !important;
}

body.dark-mode .chat-body {
    color: white !important;
}

body.dark-mode .navbar {
   background-color: #111 !important;
      border: 1px solid rgba(0, 82, 255, 0.3) !important;  
    box-shadow: 0 2px 10px rgba(0, 82, 255, 0.2);
}

body.dark-mode .nav-links a {
    color: #ffffff !important;
}

.bg-decor {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;  
        overflow: hidden;
}
html {
    scroll-behavior: smooth;
}

.circle {
        position: absolute;
        border-radius: 50%;
        background: rgba(0, 82, 255, 0.1);
        filter: blur(50px);
        animation: float 20s infinite alternate;
}

.c1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.c2 { width: 300px; height: 300px; bottom: -50px; left: -50px; animation-delay: -5s; }

@keyframes float {
        from { transform: translate(0, 0) scale(1); }
        to { transform: translate(50px, 100px) scale(1.2); }
}
        .hamburger {
            display: flex; 
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 10px;
            z-index: 3000;
            width: 35px; 
        }

        .hamburger span {
            display: block;
            width: 100%;
            height: 4px;
            background-color: #0052FF; 
            border-radius: 2px;
        }
        .sidebar {
            height: 100%;
            width: 0; 
            position: fixed;
            z-index: 4000;
            top: 0;
            left: 0;
            background: linear-gradient(180deg, #111 0%, #0052FF 100%);
            overflow-x: hidden;
            transition: 0.5s;
            padding-top: 60px;
            box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        }

        .sidebar a {
            padding: 15px 30px;
            text-decoration: none;
            font-size: 18px;
            color: #e0e0e0;
            display: block;
            transition: all 0.3s;
            border-left: 5px solid transparent; 
        }

        .sidebar a:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
            border-left: 5px solid white; 
            padding-left: 40px; 
        }
        .sidebar .closebtn {
            position: absolute;
            top: 10px;
            right: 25px;
                font-size: 36px;
            }
          .quote-section {
    padding: 40px 20px;
    text-align: center;
}

.quote-container {
    background: rgba(126, 128, 221, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 74, 240, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(38, 45, 146, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}
.quote-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(0, 82, 255, 0.05), 
        rgba(0, 82, 255, 0.2), 
        transparent
    );
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.quote-container:hover {
    transform: scale(1.02);
}

.quote-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 15px;
}
#health-quote, #quote-author {
    transition: opacity 0.5s ease-in-out;
}
#health-quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #e0e0e0;
}

#quote-author {
    color: #0052FF;
    font-weight: bold;
    letter-spacing: 1px;
}

        
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #ffffff;
            padding: 15px 50px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            
         }
        .clock-style {
            font-family: 'Courier New', Courier, monospace; 
            background: #d1d4dd;
            color: #0052FF;
            padding: 5px 10px;
            border-radius: 5px;
            font-weight: bold;
            border: 1px solid #53d3f3;
            box-shadow: #00d4ff;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #0052FF;
            
        }
        .nav-links{
            list-style: none;
            display: flex;
            gap: 30px;    
        }
        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
        }
        .nav-links a:hover{
            color:#0052FF;
        }
        .about-section {
            padding: 80px 20px;
            text-align: center;
            background: rgba(0, 82, 255, 0.02);
        }

        .about-content h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #0052FF;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .feature-item {
            padding: 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .feature-item:hover {
            transform: translateY(-10px);
        }

        .importance-note {
            margin-top: 50px;
            font-style: italic;
            font-size: 1.1rem;
            color: #555;
            border-left: 4px solid #0052FF;
            padding-left: 20px;
            display: inline-block;
        }


        body.dark-mode .feature-item {
            background: #1a1a1a;
            color: white;
        }
        body.dark-mode .importance-note {
            color: #aaa;
        }
        .big-features > div {
            background: rgba(255, 255, 255, 0.05); 
            padding: 30px;
            border-radius: 15px;
            border: 1px solid rgba(0, 82, 255, 0.2);
            transition: all 0.3s ease; 
            cursor: default;
        }

        
        .big-features > div:hover {
            background: rgba(0, 82, 255, 0.1); 
            border-color: #0052FF;
            transform: translateY(-5px); 
            box-shadow: 0 0 20px rgba(0, 82, 255, 0.6), 0 0 40px rgba(0, 82, 255, 0.2);
        }

        .big-features h3 {
            color: #0052FF;
            margin-bottom: 10px;
            font-size: 1.5rem;
}
.creator-section {
    margin-top: 80px;
    text-align: center;
    padding-bottom: 40px;
}

.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, #0052FF, transparent);
    margin-bottom: 40px;
    opacity: 0.5;
}

.creator-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-info h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #0052FF;
    margin-bottom: 10px;
}

/* The Pulse Animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.github-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
    
    animation: heartBeat 2s infinite ease-in-out;
}

.github-link:hover {
    background: #0052FF; 
    animation: none; 
    transform: scale(1.1);
}

        .doctor-card {
            background: rgba(255, 255, 255, 0.7); 
            backdrop-filter: blur(10px); 
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 195px;
            min-height: 4px;
            padding: 2px;
            text-align: center;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .doctor-card img {
            width: 100px;
            height: 100px;
            object-fit: cover; 
            border-radius: 50%;
            margin: 0 auto 15px;
            border: 3px solid #c4ebf500;
        }        

       
        .doctor-card:hover {
            transform: translateY(-10px) scale(1.02); 
            box-shadow: 0 15px 45px rgba(0, 82, 255, 0.2);
        }
            
        .doctor-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            padding: 40px;
        }
        @keyframes pulse-blue {
            0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7); }
            70% { box-shadow: 0 0 0 15px rgba(0, 82, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
        }

        .find-btn {
            
            animation: pulse-blue 2s infinite;
        }

        .find-btn:active {
            transform: scale(0.95); 
        }
        .filter-section {
            margin: 20px 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 8px 20px;
            border: 2px solid #0052FF;
            background: transparent;
            color: #ffffff;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: 0.3s;
        }

        .filter-btn.active, .filter-btn:hover {
            background: #0052FF;
            color: white;
        }


        body.dark-mode .filter-btn {
            border-color: #d6f4fa;
            color: #d6f4fa;
        }



       
                .book-btn {
            background-color: #0052FF;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 3cm;
        
        }
        img {
            height: 100px;
            width: 100px;
            border-radius: 50%;
            object-fit: cover;    
        }
        .search-section {
            text-align: center;
            margin: 20px 0;
        }
        #doctorSearch {
            padding: 12px 20px;
            width:400px;
            border: 2px solid #0052FF;
            border-radius: 25px;
            font-size: 16px;
            outline: none;
            
        }
        .book-btn {
           
            transition: background-color 0.4s ease, transform 0.2s;
        }

        .book-btn:active {
            transform: scale(0.95); 
        }
        .booking-section {
            margin-top: 40px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 15px;
        }
        
        body.dark-mode .booking-section  {
                background: rgba(0, 82, 255, 0.05);
                border: 1px solid #0b2a6d;
                box-shadow: 0 0 20px rgba(0, 82, 255, 0.4); 
                transition: all 0.5s ease;

        }

        .appointment-ticket {
            background: white;
            padding: 15px;
            margin-bottom: 10px;
            border-left: 5px solid #28a745; 
            box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        body.dark-mode .appointment-ticket {
               background: #13039c67;
            border: 1px solid #06087c; 
            border-left: 5px solid #075c1b; 
            box-shadow: 0 0 20px rgba(48, 21, 170, 0.486); 

        }
        :root{
            --accent-blue: #0052FF;
            --footer-link-color: #ffffff
        }

        .my-name {
            color: var(--accent-blue);
            font-weight: bold;
        }
        .back-to-top {
            position: fixed;
            bottom: 90px;
            right: 25px;
            display: none; 
            background-color: #0052FF;
            color: white;
            border: none;
            padding: 12px 18px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            box-shadow: 0 4px 15px rgb(16, 75, 114);
            transition: transform 0.3s, background-color 0.3s;
            z-index: 9999; 
        }

        .back-to-top:hover {
            background-color: #003db3;
            transform: scale(1.1);
        }
        .back-to-top::after {
            content: "Go to Top";
            position: absolute;
            bottom: 125%; 
            right: 50%;
            transform: translateX(50%);
            background-color: #333;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s;
            pointer-events: none; 
        }

        .back-to-top:hover::after {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top::before {
            content: "";
            position: absolute;
            bottom: 110%;
            right: 50%;
            transform: translateX(50%);
            border: 6px solid transparent;
            border-top-color: #333;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s;
        }

        .back-to-top:hover::before {
            opacity: 1;
            visibility: visible;
        }


        body.dark-mode .back-to-top {
            background-color: #0052FF;
            color: #fdfdfd;
        }
        .health-card-section {
            text-align: center;
            padding: 40px;
            background: #f0f4ff;
            margin: 20px;
            border-radius: 20px;
        }
         body.dark-mode  .health-card-section  {
                background: rgba(0, 82, 255, 0.05);
                border: 1px solid #0b2a6d;
                box-shadow: 0 0 20px rgba(0, 82, 255, 0.4); 
                transition: all 0.5s ease;

        }

        .id-card {
            width: 380px;
            height: 250px;
            background: linear-gradient(135deg, #0052FF 0%, #08338f 100%);
            color: white;
            margin: 20px auto;
            border-radius: 15px;
            padding: 25px;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
        }

        .id-card p {
            margin: 2px 0;
            font-size: 0.9rem;
            opacity: 0.9;
        }
        .card-photo-frame {
            position: absolute; 
            top: 20px;
            right: 20px;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid rgba(255, 255, 255, 0.5);
            background: #fff;
            z-index: 2;
  
        }

        .card-photo-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-header {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            border-bottom: 1px solid rgba(255,255,255,0.3);
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        .upload-success {
            background-color: #28a745 !important; 
            border-color: #28a745 !important;
            color: white !important;
        }

        .upload-badge {
            display: none; 
            color: #28a745;
            font-weight: bold;
            font-size: 0.9rem;
            margin-left: 10px;
            animation: fadeIn 0.5s ease;
        }

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

        /* Contact Form */
        .contact-section {
            max-width: 600px;
            margin: 50px auto;
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 82, 255, 0.3);
        }

        .contact-section input, .contact-section textarea {
            width: 100%;
            padding: 12px;
            margin: 10px 0;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #444;
            color: white;
            border-radius: 8px;
        }

        /* Floating Chat */
        .chat-float {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #0052FF;
            color: rgb(252, 252, 252);
            padding: 15px 25px;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 82, 255, 0.4);
            z-index: 9999;
        }
        .chat-window {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 320px;
            height: 400px;
            background: rgba(20, 20, 30, 0.95); 
            backdrop-filter: blur(15px);
            border: 1px solid rgba(0, 82, 255, 0.4);
            border-radius: 15px;
            display: none;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        body.dark-mode .chat-window {
            background: #1a1a1a;
            border: 1px solid #0052FF; 
            box-shadow: 0 0 20px rgba(0, 82, 255, 0.4); 
                }
            .chat-header {
            background: #0052FF;
            color: white;
            padding: 15px;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
        }

        .chat-body {
            flex: 1;
            padding: 15px;
            color: white;
            font-size: 14px;
            overflow-y: auto;
        }
        body.dark-mode .chat-body {
            color: white;
}

        .chat-footer input {
            width: 100%;
            border: none;
            padding: 15px;
            background: rgba(255,255,255,0.05);
            color: white;
        }
        .testimonials {
    padding: 60px 20px;
    background: rgba(0, 82, 255, 0.03);
}

.testimonial-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    height: 200px; 
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(20px);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .testimonial-card p {
    color: #e0e0e0;
    font-style: italic;
}

        .footer-links a {
            color: #00d4ff; 
            text-decoration: underline;
            font-weight: bold;
        }
        .main-footer{
            background-color: #222;
            color: white;
            padding: 40px 20px;
            text-align: center;
            margin-top: 50px;
        }
        .footer-content p {
            margin-bottom: 20px;
            font-size: 1.1rem;
        }
        .my-name{
            color:#0052FF;
            font-weight: bold;
        }
        .footer-links{
            display:flex;
            justify-content: center;
            gap: 20px;
        }
        .footer-links a:hover{
            color:white;
        }
        
        @media (max-width: 600px) {
            .navbar {
                padding: 15px 20px;
                flex-direction: column; 
                gap: 10px;
            }

            .nav-links {
                gap: 15px;
                font-size: 14px;
            }

            .doctor-card {
                width: 90%; 
            }

            #doctorSearch {
                width: 80%; /* Shrink search bar for mobile */
            }
        }
        /* The actual spinner shape */
            .loader {
                border: 8px solid #f3f3f3; 
                border-top: 8px solid #0052FF; 
                border-radius: 50%;
                width: 50px;
                height: 50px;
                animation: spin 1s linear infinite;
                margin: 20px auto; 
                display: none; 
            }

    
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            
            .stars {
                margin: 10px 0;
                font-size: 1.2rem;
            }

            .delete-btn {
                background: #ff4d4d;
                color: white;
                border: none;
                border-radius: 5px;
                padding: 5px 10px;
                cursor: pointer;
                font-weight: bold;
                transition: background 0.3s;
            }

            .delete-btn:hover {
                background: #cc0000;
            }


            .appointment-ticket {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
        .reminder-popup {
    position: fixed; 
    bottom: 20px;
    left: 20px; 
    background-color: #0052FF;
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999; 
    max-width: 280px;
    display: none; 
}

.reminder-popup.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

            .reminder-btn {
                background: white;
                color: #0052FF;
                border: none;
                padding: 5px 10px;
                margin-top: 10px;
                cursor: pointer;
                border-radius: 5px;
                font-weight: bold;
            }
            .clinic-grid {
                display: flex;
                flex-wrap: wrap;
                gap: 20px;
                justify-content: center;
                padding: 20px;
            }

            .clinic-card {
                background: rgba(255, 255, 255, 0.1); 
                backdrop-filter: blur(10px);
                border: 1px solid rgba(0, 82, 255, 0.2);
                border-radius: 15px;
                width: 300px;
                padding: 15px;
                transition: 0.3s;
            }

            .clinic-card:hover {
                border-color: #0052FF;
                box-shadow: 0 0 15px rgba(0, 82, 255, 0.3);
            }

            .map-link {
                display: inline-block;
                margin-top: 10px;
                color: #0052FF;
                text-decoration: none;
                font-weight: bold;
            }

            body.dark-mode .clinic-card {
                background: rgba(20, 20, 30, 0.8);
                color: white;
            }
                        .quiz-section {
                background: #eef2ff;
                padding: 30px;
                border-radius: 15px;
                margin: 40px 0;
                text-align: center;
            }
            body.dark-mode .quiz-section {
                background: rgba(0, 82, 255, 0.05);
                 border: 1px solid #0b2a6d;
                box-shadow: 0 0 20px rgba(0, 82, 255, 0.4); 
                transition: all 0.5s ease;
            }

            .quiz-options {
                display: flex;
                justify-content: center;
                gap: 15px;
                margin-top: 20px;
            }

            .quiz-options button {
                padding: 10px 20px;
                border: 2px solid #0052FF;
                background: white;
                color: #0052FF;
                border-radius: 8px;
                cursor: pointer;
                font-weight: bold;
                transition: 0.3s;
            }

            .quiz-options button:hover {
                background: #0052FF;
                color: white;
            }      
            .progress-container {
                width: 100%;
                background-color: #ddd;
                border-radius: 10px;
                margin-bottom: 20px;
                height: 10px;
                overflow: hidden;
            }

            .progress-fill {
                height: 100%;
                width: 33%; 
                background-color: #0052FF;
                transition: width 0.5s ease-in-out;
            }  
            @media print {
            body * {
                visibility: hidden; /
            }
            .id-card, .id-card * {
                visibility: visible; 
            }
            .id-card {
                position: absolute;
                left: 0;
                top: 0;
            }
        } 
        .clinic-section{
            text-align: center;
           
        }
/* The 'loading' state for the button */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}
.btn-success {
    background-color: #28a745 !important;
    transition: background-color 0.5s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
#about-page {
    padding: 50px 20px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.back-btn {
    padding: 10px 20px;
    background: #0052FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 30px;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInSlide 0.5s ease forwards;
}

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


#about-page {
    transition: opacity 0.5s ease;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.status-available { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.status-offline { background: rgba(255, 255, 255, 0.1); color: #888; }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-online { background: #00ff88; box-shadow: 0 0 5px #00ff88; animation: pulse 2s infinite; }
.dot-offline { background: #888; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.stat-card:hover {
    background: rgba(0, 82, 255, 0.1);
    border-color: #0052FF;
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}
.welcome-section {
    padding: 20px 10px;
    margin-bottom: 10px;
}

#greeting-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
    margin: 0;
}

#user-display-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 5px 0;
    background: linear-gradient(90deg, #fff, #0052FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.date-display {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}
.meds-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

#meds-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0052FF, #00ff88);
    transition: width 0.5s ease;
}

.med-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.med-item:hover { background: rgba(255, 255, 255, 0.08); }

.med-item.completed {
    opacity: 0.5;
    text-decoration: line-through;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #0052FF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.completed .checkbox-custom {
    background: #0052FF;
    border-color: #0052FF;
}
.bmi-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.bmi-inputs {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.input-group { flex: 1; }

.input-group label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: white;
}

.calc-btn {
    width: 100%;
    padding: 12px;
    background: #0052FF;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.bmi-score-display {
    text-align: center;
    margin-top: 20px;
}

#bmi-num { font-size: 2.5rem; font-weight: 800; color: #00ff88; }

.bmi-bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #3498db, #2ecc71, #f1c40f, #e67e22, #e74c3c);
    border-radius: 10px;
    margin-top: 15px;
    position: relative;
}

#bmi-indicator {
    width: 4px;
    height: 16px;
    background: white;
    position: absolute;
    top: -3px;
    left: 50%;
    border-radius: 2px;
    transition: left 0.5s ease;
}
.water-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.water-tank {
    width: 120px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px 15px 10px 10px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Dynamic */
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    transition: height 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.water-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#water-percent { font-size: 1.5rem; font-weight: 800; display: block; }

.water-controls {
    text-align: center;
    margin-top: 15px;
}

.water-btn {
    background: #0052FF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
    transition: 0.3s;
}

.water-btn:active { transform: scale(0.9); }

.reset-link {
    display: block;
    margin-top: 10px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.8rem;
}
.mood-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mood-emojis {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.mood-btn {
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mood-btn:hover {
    transform: scale(1.3) translateY(-5px);
}

.mood-btn:active {
    transform: scale(0.9);
}

#mood-status {
    font-size: 0.9rem;
    color: #00ff88;
    font-weight: bold;
    opacity: 0.8;
}
.sleep-section {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.sleep-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#sleep-score-pill {
    background: #0052FF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.circular-chart { display: block; margin: 10px auto; max-width: 120px; }
.circle-bg { fill: none; stroke: #333; stroke-width: 2.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke: #0052FF; transition: stroke-dasharray 0.3s ease; }
.sleep-circle { position: relative; width: 120px; margin: 0 auto; }
.percentage { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: bold; font-size: 1.2rem; }

input[type=range] { width: 100%; cursor: pointer; accent-color: #0052FF; }
.hr-zone-section {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hr-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.hr-big-num { text-align: center; }
.hr-big-num span { font-size: 3rem; font-weight: 800; color: #ff4b2b; display: block; }

.hr-zones { display: flex; flex-direction: column; gap: 8px; width: 120px; }
.zone { font-size: 0.7rem; color: #666; display: flex; justify-content: space-between; align-items: center; }
.zone span { width: 40px; height: 6px; background: #333; border-radius: 10px; }
.zone.active { color: #fff; font-weight: bold; }
.zone.active span { background: #ff4b2b; box-shadow: 0 0 10px #ff4b2b; }
.notes-section {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

#doctor-notes {
    width: 100%;
    height: 120px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed #444;
    border-radius: 12px;
    padding: 15px;
    color: #ddd;
    font-family: 'Inter', sans-serif;
    resize: none;
    margin-top: 10px;
}

#doctor-notes:focus { border-color: #0052FF; outline: none; }

.notes-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #555;
}

.notes-footer button { background: none; border: none; color: #ff4b2b; cursor: pointer; }
.report-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #0052FF, #00c6ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Modal Styling */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal-content { background: white; color: black; margin: 5% auto; padding: 40px; border-radius: 8px; width: 80%; max-width: 600px; }

#report-print-area h2 { border-bottom: 2px solid #0052FF; padding-bottom: 10px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.report-item { border-bottom: 1px solid #eee; padding: 10px 0; }
.report-item label { font-weight: bold; color: #555; display: block; font-size: 0.8rem; }
.sos-container {
    text-align: center;
    margin: 20px 0;
}

#sos-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #392bff;
    border: none;
    color: white;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px rgba(113, 150, 231, 0.5);
    transition: transform 0.2s;
}

.sos-ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #2b52ff;
    animation: sos-pulse 1.5s infinite;
}

@keyframes sos-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.sos-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(112, 144, 212, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.sos-alert-box { animation: shake 0.5s infinite; }

@keyframes shake {
    0% { transform: translate(1px, 1px); }
    20% { transform: translate(-3px, 0px); }
    100% { transform: translate(1px, -1px); }
}
.vitals-graph-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    padding-top: 20px;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 15%;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #0052FF, #00c6ff);
    border-radius: 6px;
    transition: height 1s ease-out;
    position: relative;
}

.bar:hover { filter: brightness(1.2); cursor: pointer; }

.bar-wrapper span { font-size: 0.7rem; color: #666; }
.active-bar {
    background: linear-gradient(to top, #00ff88, #0052FF) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.composition-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.comp-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 15px;
}

.semi-circle-container {
    position: relative;
    width: 120px;
    height: 60px; /* Half height for semi-circle */
    overflow: hidden;
    text-align: center;
}

.semi-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#0052FF 0deg, #333 0deg);
    mask: radial-gradient(farthest-side, transparent 80%, black 81%);
    transform: rotate(-90deg); /* Align to top */
}

.comp-item input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    width: 50px;
    text-align: center;
    margin-top: 10px;
}