@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:linear-gradient(135deg,#1e3c72,#2a5298);
min-height:100vh;
}

/* ================= LOGIN ================= */

.login-wrapper{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
}

.login-card{
background:rgba(255,255,255,0.95);
backdrop-filter:blur(10px);
padding:40px;
width:380px;
border-radius:20px;
box-shadow:0 20px 40px rgba(0,0,0,0.2);
text-align:center;
}

.logo-circle{
width:110px;
height:110px;
border-radius:50%;
background:linear-gradient(135deg,#00c6ff,#0072ff);
margin:0 auto 20px;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
font-size:38px;
font-weight:600;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.hospital-name{
font-size:20px;
font-weight:600;
margin-bottom:25px;
color:#1e3c72;
}

input{
width:100%;
padding:12px;
margin:10px 0;
border-radius:12px;
border:1px solid #ddd;
outline:none;
transition:0.3s;
}

input:focus{
border-color:#0072ff;
box-shadow:0 0 10px rgba(0,114,255,0.2);
}

button{
width:100%;
padding:12px;
border:none;
border-radius:12px;
background:linear-gradient(135deg,#00c6ff,#0072ff);
color:#fff;
font-weight:500;
cursor:pointer;
transition:0.3s;
}

button:hover{
transform:translateY(-2px);
box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* ================= ADMIN LAYOUT ================= */

.admin-layout{
display:flex;
min-height:100vh;
background:#f4f8ff;
}

.sidebar{
width:260px;
background:linear-gradient(180deg,#1e3c72,#2a5298);
color:#fff;
padding:30px 20px;
position:fixed;
height:100%;
}

.sidebar h2{
font-size:18px;
margin-bottom:30px;
text-align:center;
}

.sidebar a{
display:block;
padding:12px;
margin-bottom:10px;
color:#fff;
text-decoration:none;
border-radius:10px;
transition:0.3s;
font-size:14px;
}

.sidebar a:hover{
background:rgba(255,255,255,0.2);
}

.main{
margin-left:260px;
flex:1;
padding:30px;
}

.topbar{
background:#fff;
padding:20px;
border-radius:15px;
box-shadow:0 10px 30px rgba(0,0,0,0.05);
margin-bottom:25px;
display:flex;
justify-content:space-between;
align-items:center;
}

.card{
background:#fff;
padding:25px;
border-radius:15px;
box-shadow:0 10px 30px rgba(0,0,0,0.05);
margin-bottom:20px;
}

.stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-bottom:20px;
}

.stat-box{
padding:20px;
border-radius:15px;
color:#fff;
font-weight:500;
}

.blue{background:linear-gradient(135deg,#00c6ff,#0072ff);}
.green{background:linear-gradient(135deg,#11998e,#38ef7d);}
.orange{background:linear-gradient(135deg,#f7971e,#ffd200);}
.red{background:linear-gradient(135deg,#ff416c,#ff4b2b);}

table{
width:100%;
border-collapse:collapse;
}

table th{
background:#2a5298;
color:#fff;
padding:12px;
text-align:left;
}

table td{
padding:12px;
border-bottom:1px solid #eee;
}

.action-btn{
padding:6px 12px;
border-radius:8px;
color:#fff;
text-decoration:none;
font-size:12px;
}

.delete{background:#ff4b2b;}
.edit{background:#0072ff;}

@media(max-width:768px){
.sidebar{
position:relative;
width:100%;
height:auto;
}
.main{
margin-left:0;
}
}
