* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Navbar */



.navbar {
    height: 70px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* move menu to right */
    padding: 0 40px;
}

.logo {
    width: 200px;
    /* Logo size */
    height: auto;
    position: fixed;
    /* Stay in corner */
    top: -25px;
    /* Distance from top */
    left: 05px;
    /* Distance from right */
    z-index: 1000;
    /* Always on top */
}

.navbar nav a {
    text-decoration: none;
    margin: 0 15px;
    color: #f3d1d1;
    font-weight: 500;
}

.login-btn {
    padding: 7px 15px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.cards {
    display: flex;
    justify-content: space-around;
    margin: 30px 20px;
}

.card {
    background: white;
    padding: 20px;
    width: 22%;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card p {
    font-size: 92px;
    font-weight: bold;
    margin-top: 8px;
}



/* Hero Section */

.hero {
    min-height: 90vh;
    background: linear-gradient(to right, #adbbdb, #aabff6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: white;
}

/* ================= CARDS ================= */

.cards {
    display: flex;
    justify-content: space-around;
    margin: 30px 20px;
}

.card {
    background: white;
    padding: 20px;
    width: 22%;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card p {
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
}

/* ================= CHARTS ================= */

.charts {
    display: flex;
    justify-content: space-around;
    margin: 30px 20px;
}

.chart-box {
    background: white;
    padding: 25px;
    width: 45%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* HEALTH SUMMARY */
.health-summary {
    background: white;
    margin: 20px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
    height: 25px;
}

.progress-bar {
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 25px;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    transition: width 0.6s ease-in-out, background-color 0.6s ease;
}

/* =========================
   ADVANCED CHATBOX STYLE
========================= */

/* 1️⃣ Floating Button (Glow Effect) */
#chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    font-size: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 99999;
}

#chatbot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.9);
}

/* 2️⃣ Chat Box (Slide Animation) */
#chatbox {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 330px;
    height: 450px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 3️⃣ Header (Gradient Look) */
#chat-header {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* 4️⃣ Chat Body (Smooth Scroll) */
#chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f9fafb;
    scroll-behavior: smooth;
}

/* 5️⃣ Input Area (Modern Design) */
#chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

#chat-input input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    outline: none;
}

#chat-input input:focus {
    border-color: #2563eb;
}

#chat-input button {
    margin-left: 6px;
    padding: 8px 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

#chat-input button:hover {
    background: #1e40af;
}

/* Messages */

.user-msg {
    background: #2563eb;
    color: white;
    padding: 8px 12px;
    border-radius: 15px 15px 0 15px;
    margin: 6px 0;
    max-width: 80%;
    align-self: flex-end;
}

.bot-msg {
    background: #e5e7eb;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
    margin: 6px 0;
    max-width: 80%;
}

/* Mobile */

@media (max-width: 600px) {

    #chatbox {
        width: 95%;
        right: 10px;
    }

    #chatbot-btn {
        right: 10px;
    }
}