/* ===== GOOGLE FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* ===== RESET ===== */
*{
    margin: 0;
    padding: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== BODY (GLASS WHITE + ORANGE GLOW) ===== */
body{
    background: linear-gradient(135deg, #fff7ed, #fff);
    color: #1f2937;
    overflow-x: hidden;
}

/* floating glow animation background */
body::before{
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,140,0,0.15), transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(255,165,0,0.12), transparent 40%);
    animation: floatGlow 8s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes floatGlow{
    from{ transform: translate(0,0); }
    to{ transform: translate(30px, -30px); }
}

/* ===== NAVBAR ===== */
.navbar{
    width: 100%;
    background: rgba(255, 140, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(255,140,0,0.25);
}

.logo{
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.nav-links{
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a{
    text-decoration: none;
    color: #fff7ed;
    font-size: 17px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover{
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* ===== CONTAINER ===== */
.container{
    width: 90%;
    max-width: 1200px;
    margin: auto;
    margin-top: 50px;
}

/* ===== CARD (GLASS EFFECT) ===== */
.card{
    width: 100%;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(255,140,0,0.15);
    border: 1px solid rgba(255,140,0,0.2);
    overflow-x: auto;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn{
    from{ opacity: 0; transform: translateY(20px); }
    to{ opacity: 1; transform: translateY(0); }
}

/* ===== TITLE ===== */
.title{
    text-align: center;
    margin-bottom: 15px;
}

.title h1{
    font-size: 50px;
    color: #ff7a00;
    text-shadow: 0 0 10px rgba(255,122,0,0.2);
}

.title p{
    color: #9a5b1a;
    margin-top: 10px;
    font-size: 18px;
}

/* ===== FORM ===== */
.form-group{
    margin-bottom: 25px;
}

.form-group label{
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #c2410c;
}

.form-group input{
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: 15px;
    background: rgba(255,255,255,0.9);
    color: #1f2937;
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus{
    outline: none;
    box-shadow: 0 0 15px rgba(255,140,0,0.3);
    border-color: #ff7a00;
}

/* ===== BUTTON ===== */
.btn{
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #ff7a00, #ffb347);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(255,140,0,0.25);
}

.btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255,140,0,0.35);
}

/* ===== HEART ===== */
.heart{
    text-align: center;
    font-size: 150px;
    color: #ff6b00;
    animation: beat 1s infinite;
    text-shadow: 0 0 20px rgba(255,107,0,0.3);
}

@keyframes beat{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.1); }
    100%{ transform: scale(1); }
}

/* ===== SPO2 ===== */
.spo2{
    text-align: center;
    font-size: 35px;
    color: #ea580c;
    margin-bottom: 20px;
}

/* ===== BPM ===== */
.bpm{
    text-align: center;
    font-size: 55px;
    font-weight: bold;
    color: #ff7a00;
}

/* ===== STATUS ===== */
.status{
    text-align: center;
    font-size: 22px;
    color: #c2410c;
}

/* ===== TABLE ===== */
.table-responsive{
    width: 100%;
    overflow-x: auto;
}

table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th{
    background: linear-gradient(90deg, #ff7a00, #ffb347);
    color: white;
    padding: 15px;
    border: none;
    font-size: 16px;
}

table td{
    background: rgba(255,255,255,0.9);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,140,0,0.15);
    font-size: 15px;
}

/* ===== POPUP ===== */
.popup{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,140,0,0.15);
    backdrop-filter: blur(6px);
    z-index: 999999;
}

.popup-box {
    background: rgba(255,255,255,0.85);
    padding: 30px 25px;
    border-radius: 18px;
    text-align: center;
    width: 320px;
    border: 1px solid rgba(255,140,0,0.3);
    box-shadow: 0 20px 40px rgba(255,140,0,0.2);
    animation: pop 0.25s ease;
}

.hidden{
    display:none;
}

@keyframes pop{
    from{ transform: scale(0.8); opacity:0; }
    to{ transform: scale(1); opacity:1; }
}

/* ===== DASHBOARD ===== */
.dashboard-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 25px;
    margin-top: 30px;
}

.dashboard-card{
    background: rgba(255,255,255,0.85);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255,140,0,0.15);
    border: 1px solid rgba(255,140,0,0.2);
    transition: 0.3s;
}

.dashboard-card:hover{
    transform: translateY(-5px);
}

.dashboard-card h2{
    color: #c2410c;
    margin-bottom: 15px;
}

.dashboard-card h1{
    color: #ff7a00;
    font-size: 50px;
}

/* ===== ALERT ===== */
.alert-danger{
    margin-top: 25px;
    background: linear-gradient(90deg, #ff4d4d, #ff7a00);
    color: white;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(255,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer-right{
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 13px;
    color: #ff7a00;
    background: rgba(255,255,255,0.8);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,140,0,0.2);
    backdrop-filter: blur(8px);
}

