:root{
--primary:#0a7cff;
--secondary:#00bfa6;
--dark:#1e293b;
--light:#ffffff;
--shadow:0 15px 40px rgba(0,0,0,0.12);
}

/* GLOBAL RESET */

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

body{
background:linear-gradient(120deg,#e0f7fa,#ffffff);
color:var(--dark);
}

/* BUTTONS */

.btn{
padding:10px 22px;
border-radius:25px;
border:none;
cursor:pointer;
transition:0.3s;
}

.btn-primary{
background:var(--primary);
color:white;
}

.btn-primary:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(10,124,255,0.3);
}

.btn-secondary{
background:var(--secondary);
color:white;
}

.btn-secondary:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(0,191,166,0.3);
}

/* HERO */

.hero{
background:linear-gradient(135deg,#0a7cff,#00bfa6);
color:white;
padding:60px;
margin:20px;
border-radius:20px;
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:30px;
}

/* AI CHAT */

.ai-box{
background:white;
padding:20px;
border-radius:14px;
box-shadow:var(--shadow);
color:var(--dark);
}

.ai-messages{
height:180px;
overflow-y:auto;
margin-bottom:10px;
font-size:14px;
}

.chat{
padding:8px;
margin:6px 0;
border-radius:8px;
font-size:14px;
}

.chat.user{
background:#e3f2fd;
}

.chat.ai{
background:#e8f5e9;
}

/* CARDS */

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
padding:40px;
}

.card{
background:white;
padding:20px;
border-radius:14px;
box-shadow:var(--shadow);
transition:0.3s;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 20px 45px rgba(0,0,0,0.15);
}

/* SECTIONS */

.section{
padding:60px 80px;
margin-top:20px;
}

.section h2{
font-size:28px;
margin-bottom:20px;
color:var(--primary);
}

/* DASHBOARD */

.stats-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
}

.stat-card{
background:white;
padding:25px;
border-radius:14px;
box-shadow:var(--shadow);
text-align:center;
transition:0.3s;
}

.stat-card p{
font-size:26px;
font-weight:bold;
margin-top:10px;
}

.stat-card:hover{
transform:translateY(-8px);
background:linear-gradient(135deg,#0a7cff,#00bfa6);
color:white;
}

/* DOCTOR SEARCH */

.search-box{
width:300px;
padding:10px;
margin-bottom:20px;
border-radius:8px;
border:1px solid #ccc;
transition:0.2s;
}

.search-box:focus{
border-color:var(--primary);
box-shadow:0 0 10px rgba(10,124,255,0.2);
}

/* DOCTOR CARD */

.doctor{
text-align:center;
}

.doctor h3{
margin-bottom:6px;
}

.doctor button{
margin-top:10px;
}

/* FORMS */

.form-section{
width:420px;
margin:40px auto;
background:white;
padding:25px;
border-radius:14px;
box-shadow:var(--shadow);
}

input,textarea{
width:100%;
margin:8px 0;
padding:10px;
border-radius:6px;
border:1px solid #ccc;
}

input:focus,
textarea:focus{
border-color:var(--primary);
outline:none;
box-shadow:0 0 8px rgba(10,124,255,0.2);
}

.form-section button{
margin-top:20px;
width:100%;
}

/* AUTH UI */

.auth-container{
display:flex;
gap:40px;
justify-content:center;
flex-wrap:wrap;
}

.auth-box{
background:white;
padding:30px;
width:320px;
border-radius:14px;
box-shadow:var(--shadow);
transition:0.3s;
}

.auth-box:hover{
transform:scale(1.03);
}

/* SIDEBAR */
.sidebar{
position:fixed;
left:0;
top:0;
width:220px;
height:100vh;
background:#0a7cff;
padding-top:80px;
display:flex;
flex-direction:column;
z-index:1001;
transition:width 0.3s ease;
}

/* Collapsed sidebar */

.sidebar.collapsed{
width:70px;
}

/* Sidebar links */

.side-link{
display:flex;
align-items:center;
gap:12px;
color:white;
text-decoration:none;
padding:15px 20px;
font-size:15px;
transition:0.3s;
position:relative;
}

/* Icon */

.icon{
font-size:20px;
min-width:25px;
text-align:center;
}

/* Label text */

.label{
white-space:nowrap;
transition:opacity 0.3s;
}

/* Hide labels when collapsed */

.sidebar.collapsed .label{
opacity:0;
pointer-events:none;
}

/* Hover */

.side-link:hover{
background:rgba(255,255,255,0.15);
}

/* Active link */

.side-link.active{
background:rgba(255,255,255,0.15);
font-weight:bold;
}

/* Sliding indicator */

.sidebar-indicator{
position:absolute;
left:0;
width:4px;
height:40px;
background:#00bfa6;
transition:top 0.3s ease;
}

/* MAIN CONTENT */

.main-content{
margin-left:220px;
transition:margin-left 0.3s ease;
}

/* when sidebar collapses */

.main-content.expanded{
margin-left:70px;
}
/* HAMBURGER */

.menu-toggle{
font-size:26px;
background:#0a7cff;
color:white;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
z-index:2000;
}

/* SIDEBAR COLLAPSE */

.sidebar.closed{
transform:translateX(-100%);
}

.main-content.full{
margin-left:0;
}

/* NOTIFICATIONS */

.notification-box {

position: fixed;
right: 20px;
bottom: 20px;

width: 280px;

background: white;
border-radius: 12px;

box-shadow: 0 15px 40px rgba(0,0,0,0.15);

padding: 18px;

z-index: 1000;

animation: slideUp 0.4s ease;

}

/* Title */

.notification-box h4{
margin-bottom:10px;
font-size:16px;
color:var(--primary);
}

/* List */

.notification-box ul{
list-style:none;
padding:0;
margin:0;
}

/* Individual Notification */

.notification-box li{

background:#f5f7fb;

margin-bottom:8px;

padding:10px;

border-radius:8px;

font-size:14px;

border-left:4px solid var(--primary);

transition:0.2s;

}

/* Hover Effect */

.notification-box li:hover{

background:#e9f2ff;
transform:translateX(4px);

}

/* Animation */

@keyframes slideUp{

from{
transform:translateY(50px);
opacity:0;
}

to{
transform:translateY(0);
opacity:1;
}

}

/* Mobile Responsive */

@media (max-width:600px){

.notification-box{

right:10px;
left:10px;
width:auto;

}

}
/* SCROLL ANIMATION */

.reveal{
opacity:0;
transform:translateY(40px);
transition:all 0.8s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

/* RESPONSIVE */

@media(max-width:900px){

.hero{
grid-template-columns:1fr;
}

.section{
padding:40px;
}

.main-content{

margin-left:220px;
margin-top:70px;
padding:20px;
}
.sidebar{
transform:translateX(-100%);
}

}

.top-header{
position:fixed;
top:0;
left:0;
right:0;
height:60px;

display:flex;
justify-content:space-between;
align-items:center;

padding:0 20px;

background:white;

box-shadow:0 5px 20px rgba(0,0,0,0.08);

z-index:1200;
}

/* left part */

.header-left{
display:flex;
align-items:center;
gap:12px;
}

/* right part */

.top-actions{
display:flex;
align-items:center;
gap:10px;
}

/* login register */

.auth-link{
text-decoration:none;
color:#333;
font-weight:500;
}

.divider{
color:#aaa;
}

.user-info{
display:flex;
align-items:center;
gap:15px;
}

.profile-icon{
width:36px;
height:36px;
border-radius:50%;
cursor:pointer;
border:2px solid var(--primary);
}

.profile-menu{
position:relative;
}

.profile-dropdown{
position:absolute;
top:50px;
right:0;
background:white;
border-radius:10px;
box-shadow:var(--shadow);
display:none;
flex-direction:column;
width:150px;
}

.profile-dropdown a{
padding:10px;
text-decoration:none;
color:var(--dark);
border-bottom:1px solid #eee;
}

.profile-dropdown a:hover{
background:#f5f7fb;
}

.notification-icon{
position:relative;
cursor:pointer;
font-size:18px;
}

.notification-dropdown{
position:absolute;
top:35px;
right:0;
background:white;
width:220px;
border-radius:10px;
box-shadow:var(--shadow);
padding:10px;
display:none;
}

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

.chart-card{
background:white;
padding:20px;
border-radius:12px;
box-shadow:var(--shadow);
}

.appointment-table{
width:100%;
border-collapse:collapse;
background:white;
box-shadow:var(--shadow);
margin-top:20px;
}

.appointment-table th,
.appointment-table td{
padding:12px;
border-bottom:1px solid #eee;
text-align:left;
}

.status.confirmed{
color:green;
font-weight:bold;
}

.status.pending{
color:orange;
font-weight:bold;
}

.doctor-img{
width:80px;
height:80px;
border-radius:50%;
object-fit:cover;
margin-bottom:10px;
}

.specialty{
display:inline-block;
background:#e3f2fd;
color:#0a7cff;
padding:4px 10px;
border-radius:10px;
font-size:13px;
margin-bottom:6px;
}

.rating{
font-size:14px;
color:#555;
margin:6px 0;
}

.doctor{
text-align:center;
transition:0.3s;
}

.doctor:hover{
transform:translateY(-6px);
}

html{
scroll-behavior:smooth;
}

.icon{
font-size:20px;
min-width:25px;
text-align:center;
}

.label{
white-space:nowrap;
transition:opacity 0.3s;
}

/* hide text when collapsed */

.sidebar.collapsed .label{
opacity:0;
width:0;
overflow:hidden;
}
.sidebar.collapsed .side-link{
justify-content:center;
}