/* ===================================
   MEDICATION & IV DOSE CALCULATOR
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#eef5fa;
    color:#333;
    padding:40px 20px;
    line-height:1.6;
}

.container{
    max-width:900px;
    margin:auto;
}

h1{
    text-align:center;
    color:#0f4c81;
    margin-bottom:10px;
    font-size:42px;
}

.subtitle{
    text-align:center;
    color:#009688;
    margin-bottom:40px;
    font-size:18px;
}

.card{
    background:white;
    margin-bottom:35px;
    padding:35px;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.card h2{
    color:#0f4c81;
    margin-bottom:25px;
}

label{
    display:block;
    margin-top:18px;
    margin-bottom:8px;
    font-weight:600;
    color:#0f4c81;
}

input,
select{
    width:100%;
    padding:14px;
    border:1px solid #d0d7de;
    border-radius:10px;
    font-size:16px;
}

input:focus,
select:focus{
    outline:none;
    border-color:#009688;
    box-shadow:0 0 8px rgba(0,150,136,.25);
}

button{
    width:100%;
    margin-top:25px;
    padding:15px;
    background:#0f4c81;
    color:white;
    border:none;
    border-radius:10px;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#0b3d68;
}

.result{
    margin-top:25px;
    padding:20px;
    border-radius:10px;
    background:#d1f7e4;
    border-left:6px solid #28a745;
    font-size:18px;
    font-weight:600;
}

.error{
    margin-top:25px;
    padding:20px;
    border-radius:10px;
    background:#ffe2e2;
    border-left:6px solid #dc3545;
    font-size:16px;
    font-weight:600;
}

@media(max-width:768px){

    h1{
        font-size:32px;
    }

    .card{
        padding:25px;
    }

}