*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}

body{
background:linear-gradient(135deg,#eef2ff,#dbeafe);
overflow-x:hidden;
color:#1e293b;
}

/* LOGIN PAGE */

.login-page{
display:flex;
min-height:100vh;
}

.left{
width:50%;
background:linear-gradient(135deg,#4f46e5,#7c3aed);
display:flex;
justify-content:center;
align-items:center;
flex-direction:column;
padding:50px;
color:#fff;
position:relative;
overflow:hidden;
}

.left::before{
content:'';
position:absolute;
width:400px;
height:400px;
background:rgba(255,255,255,.1);
border-radius:50%;
top:-120px;
right:-120px;
}

.left img{
width:320px;
max-width:100%;
margin-bottom:30px;
z-index:2;
}

.left h1{
font-size:45px;
font-weight:800;
text-align:center;
line-height:1.4;
z-index:2;
}

.right{
width:50%;
display:flex;
justify-content:center;
align-items:center;
padding:40px;
}

.login-box{
width:430px;
background:rgba(255,255,255,.55);
backdrop-filter:blur(15px);
padding:45px;
border-radius:30px;
box-shadow:0 15px 40px rgba(0,0,0,.08);
border:1px solid rgba(255,255,255,.3);
}

.login-box h2{
font-size:38px;
margin-bottom:30px;
font-weight:800;
color:#1e293b;
}

.login-logo{
width:280px;
max-width:100%;
margin-bottom:25px;
object-fit:contain;
}


.input-group{
margin-bottom:18px;
position:relative;
}

.input-group input,
.input-group textarea,
.input-group select{
width:100%;
padding:16px;
border:none;
outline:none;
background:#f8fafc;
border-radius:16px;
font-size:15px;
transition:.3s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus{
background:#fff;
box-shadow:0 0 0 3px rgba(79,70,229,.15);
}

textarea{
resize:none;
height:120px;
}

.eye-btn{
position:absolute;
right:15px;
top:50%;
transform:translateY(-50%);
cursor:pointer;
color:#64748b;
}

.btn{
width:100%;
padding:16px;
border:none;
border-radius:16px;
background:linear-gradient(135deg,#4f46e5,#7c3aed);
color:#fff;
font-size:16px;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.btn:hover{
transform:translateY(-2px);
box-shadow:0 12px 25px rgba(79,70,229,.25);
}

/* SIDEBAR */

.sidebar{
position:fixed;
left:0;
top:0;
width:280px;
height:100vh;
background:rgba(255,255,255,.55);
backdrop-filter:blur(15px);
padding:30px;
overflow:auto;
border-right:1px solid rgba(255,255,255,.2);
box-shadow:0 0 20px rgba(0,0,0,.05);
z-index:999;
}

.logo{
font-size:32px;
font-weight:900;
margin-bottom:40px;
color:#4f46e5;
letter-spacing:1px;
}

.menu a{
display:flex;
align-items:center;
gap:12px;
padding:16px;
margin-bottom:12px;
border-radius:16px;
text-decoration:none;
color:#334155;
font-weight:600;
transition:.3s;
}

.menu a:hover,
.menu a.active{
background:linear-gradient(135deg,#4f46e5,#7c3aed);
color:#fff;
transform:translateX(4px);
}

/* CONTENT */

.content{
margin-left:300px;
padding:30px;
}

.topbar{
background:rgba(255,255,255,.55);
backdrop-filter:blur(15px);
padding:25px;
border-radius:25px;
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
box-shadow:0 10px 20px rgba(0,0,0,.05);
}

.topbar h2{
font-size:28px;
font-weight:800;
margin-bottom:6px;
}

#clock{
font-size:15px;
color:#64748b;
}

/* CARDS */

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
margin-bottom:30px;
}

.card{
background:rgba(255,255,255,.55);
backdrop-filter:blur(15px);
padding:30px;
border-radius:25px;
box-shadow:0 10px 20px rgba(0,0,0,.05);
border:1px solid rgba(255,255,255,.2);
transition:.3s;
}

.card:hover{
transform:translateY(-4px);
}

.card h3{
margin-bottom:12px;
font-size:18px;
font-weight:700;
}

.big{
font-size:45px;
font-weight:900;
color:#4f46e5;
}

/* TABLE */

.table-box{
background:rgba(255,255,255,.55);
backdrop-filter:blur(15px);
border-radius:25px;
padding:25px;
overflow:auto;
box-shadow:0 10px 20px rgba(0,0,0,.05);
}

table{
width:100%;
border-collapse:collapse;
min-width:900px;
}

table th{
background:#eef2ff;
padding:16px;
text-align:left;
font-size:14px;
color:#475569;
}

table td{
padding:16px;
border-bottom:1px solid #e2e8f0;
font-size:14px;
}

.avatar{
width:60px;
height:60px;
border-radius:50%;
object-fit:cover;
border:3px solid #fff;
box-shadow:0 5px 10px rgba(0,0,0,.1);
}

/* BUTTONS */

.small-btn{
padding:10px 16px;
border:none;
border-radius:12px;
color:#fff;
text-decoration:none;
display:inline-block;
font-size:14px;
font-weight:600;
cursor:pointer;
transition:.3s;
margin-right:5px;
}

.small-btn:hover{
transform:translateY(-2px);
}

.green{
background:#16a34a;
}

.red{
background:#dc2626;
}

.blue{
background:#2563eb;
}

.orange{
background:#f97316;
}

/* PROFILE */

.profile-box{
display:flex;
align-items:center;
gap:15px;
}

.profile-box img{
width:55px;
height:55px;
border-radius:50%;
object-fit:cover;
}

.profile-name{
font-weight:700;
}

/* TOAST */

.toast{
position:fixed;
top:20px;
right:20px;
background:#16a34a;
color:#fff;
padding:16px 24px;
border-radius:14px;
box-shadow:0 10px 20px rgba(0,0,0,.15);
display:none;
z-index:99999;
font-weight:700;
}

/* CHART BOX */

.chart-box{
background:rgba(255,255,255,.55);
backdrop-filter:blur(15px);
padding:30px;
border-radius:25px;
margin-bottom:30px;
}

/* MOBILE */

@media(max-width:991px){

.sidebar{
position:relative;
width:100%;
height:auto;
border-radius:0 0 25px 25px;
}

.content{
margin-left:0;
padding:20px;
}

.login-page{
flex-direction:column;
}

.left,
.right{
width:100%;
}

.left{
min-height:300px;
}

.left h1{
font-size:32px;
}

.login-box{
width:100%;
}

.cards{
grid-template-columns:1fr;
}

.topbar{
flex-direction:column;
align-items:flex-start;
gap:15px;
}

table{
min-width:700px;
}

}

/* SCROLLBAR */

::-webkit-scrollbar{
width:8px;
height:8px;
}

::-webkit-scrollbar-thumb{
background:#6366f1;
border-radius:10px;
}

::-webkit-scrollbar-track{
background:#e2e8f0;
}

.login-tagline{
font-size:18px;
margin-top:20px;
text-align:center;
line-height:1.8;
max-width:500px;
opacity:.95;
}

.login-subtitle{
margin-bottom:25px;
color:#64748b;
line-height:1.7;
}

.login-icon{
width:75px;
height:75px;
background:linear-gradient(135deg,#4f46e5,#7c3aed);
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
margin:auto;
margin-bottom:20px;
color:#fff;
font-size:30px;
}

.input-icon{
position:absolute;
left:15px;
top:50%;
transform:translateY(-50%);
color:#64748b;
}

.input-group input{
padding-left:45px;
}

.forgot-row{
text-align:right;
margin-bottom:20px;
}

.forgot-row a{
text-decoration:none;
font-size:14px;
font-weight:700;
color:#4f46e5;
}

.stats-card{
position:relative;
overflow:hidden;
}

.card-icon{
font-size:32px;
margin-bottom:15px;
color:#7c3aed;
}

.green-icon{
color:#16a34a;
}

.orange-icon{
color:#f97316;
}

.blue-icon{
color:#2563eb;
}

.stats-card p{
margin-top:10px;
line-height:1.7;
color:#64748b;
font-size:14px;
}

.modal{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.5);
justify-content:center;
align-items:center;
z-index:99999;
}

.modal-box{
width:400px;
background:#fff;
padding:35px;
border-radius:25px;
}

.red-alert{
background:#fee2e2;
color:#dc2626;
padding:14px;
border-radius:14px;
margin-bottom:20px;
font-weight:700;
}

.card{
background:#ffffffd9;
}

.table-box{
background:#ffffffd9;
}

.topbar{
background:#ffffffd9;
}

.sidebar{
background:#ffffffea;
}



/*Employee dashboard leave & punch*/

/* =========================================
   PREMIUM EMPLOYEE DASHBOARD FINAL
========================================= */

.employee-dashboard{
display:flex;
flex-direction:column;
gap:24px;
padding-top:4px;
}

/* =========================================
   CARD
========================================= */

.employee-dashboard .card{
position:relative;
background:
linear-gradient(145deg,#ffffff 0%,#f8fbff 100%);
border-radius:26px;
padding:22px !important;
overflow:hidden;
border:1px solid #edf2ff;
box-shadow:
0 8px 24px rgba(15,23,42,.05);
transition:
all .35s ease;
animation:cardFade .5s ease;
}

/* HOVER */

.employee-dashboard .card:hover{
transform:translateY(-4px);
box-shadow:
0 18px 38px rgba(79,70,229,.10);
border-color:#dbe7ff;
}

/* TOP GLOW */

.employee-dashboard .card::before{
content:'';
position:absolute;
top:-80px;
right:-80px;
width:180px;
height:180px;
border-radius:50%;
background:
radial-gradient(circle,
rgba(99,102,241,.10),
transparent 70%);
pointer-events:none;
}

/* =========================================
   HEADER
========================================= */

.employee-dashboard .card h2{
display:flex;
align-items:center;
gap:12px;
font-size:22px !important;
font-weight:800;
margin-bottom:4px !important;
color:#0f172a;
letter-spacing:-.3px;
}

/* REMOVE EXTRA LINE */

.employee-card-subtitle{
margin-top:0 !important;
padding-top:0 !important;
border:none !important;
box-shadow:none !important;
background:none !important;
font-size:13px;
color:#64748b;
}

/* =========================================
   ICONS
========================================= */

.employee-dashboard .attendance-section h2::before{
content:'\f017';
font-family:"Font Awesome 6 Free";
font-weight:900;
width:46px;
height:46px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
font-size:17px;
color:#fff;
background:
linear-gradient(135deg,#22c55e,#16a34a);
box-shadow:
0 8px 18px rgba(34,197,94,.25);
animation:floatIcon 3s ease-in-out infinite;
flex-shrink:0;
}

.employee-dashboard .leave-section h2::before{
content:'\f073';
font-family:"Font Awesome 6 Free";
font-weight:900;
width:46px;
height:46px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
font-size:17px;
color:#fff;
background:
linear-gradient(135deg,#6366f1,#4f46e5);
box-shadow:
0 8px 18px rgba(99,102,241,.24);
animation:floatIcon 3s ease-in-out infinite;
flex-shrink:0;
}

/* =========================================
   CLOCK
========================================= */

.employee-dashboard #clock{
font-size:14px !important;
font-weight:700;
color:#4f46e5 !important;
margin:14px 0 18px 0 !important;
padding:10px 14px;
border-radius:12px;
background:#eef2ff;
display:inline-flex;
align-items:center;
gap:8px;
}

/* =========================================
   BUTTON AREA
========================================= */

.attendance-btns{
display:flex;
gap:12px;
margin-top:6px;
margin-bottom:18px;
}

/* BUTTON */

.employee-dashboard .btn{
height:44px;
padding:0 24px !important;
border:none;
border-radius:14px;
font-size:14px;
font-weight:700;
display:flex;
align-items:center;
justify-content:center;
gap:10px;
transition:.3s;
letter-spacing:.2px;
min-width:160px;
}

/* ICON */

.employee-dashboard .btn i{
font-size:14px;
}

/* PUNCH IN */

.employee-dashboard button[name="punchin"]{
background:
linear-gradient(135deg,#22c55e,#16a34a);
color:#fff;
box-shadow:
0 10px 20px rgba(34,197,94,.20);
}

/* PUNCH OUT */

.employee-dashboard button[name="punchout"]{
background:
linear-gradient(135deg,#ef4444,#dc2626);
color:#fff;
box-shadow:
0 10px 20px rgba(239,68,68,.20);
}

/* APPLY LEAVE */

.employee-dashboard button[name="apply_leave"]{
background:
linear-gradient(135deg,#6366f1,#4f46e5);
color:#fff;
box-shadow:
0 10px 22px rgba(99,102,241,.20);
margin-top:6px;
width:100%;
}

/* BUTTON HOVER */

.employee-dashboard .btn:hover{
transform:
translateY(-2px)
scale(1.02);
}

/* =========================================
   DETAILS PANEL
========================================= */

.attendance-details{
background:#ffffff;
border-radius:18px;
border:1px solid #edf2ff;
overflow:hidden;
margin-top:8px;
box-shadow:
0 4px 14px rgba(15,23,42,.03);
}

/* ROW */

.attendance-row{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 18px;
border-bottom:1px solid #f1f5f9;
transition:.3s;
font-size:13px;
}

/* LAST */

.attendance-row:last-child{
border-bottom:none;
}

/* HOVER */

.attendance-row:hover{
background:#f8fbff;
padding-left:22px;
}

/* LABEL */

.attendance-row span{
font-size:11px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.8px;
color:#64748b;
}

/* VALUE */

.attendance-row strong{
font-size:13px;
color:#0f172a;
font-weight:700;
text-align:right;
}

/* =========================================
   FORM
========================================= */

.employee-dashboard .input-group{
margin-bottom:14px;
}

.employee-dashboard .input-group input,
.employee-dashboard .input-group select,
.employee-dashboard .input-group textarea{
background:#fff;
border:1px solid #e2e8f0;
padding:13px 15px;
border-radius:14px;
font-size:13px;
transition:.3s;
}

.employee-dashboard .input-group input:focus,
.employee-dashboard .input-group select:focus,
.employee-dashboard .input-group textarea:focus{
border-color:#6366f1;
background:#fcfcff;
box-shadow:
0 0 0 4px rgba(99,102,241,.08);
}

/* TEXTAREA */

.employee-dashboard textarea{
height:100px;
resize:none;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes floatIcon{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-4px);
}

100%{
transform:translateY(0px);
}

}

@keyframes cardFade{

from{
opacity:0;
transform:translateY(18px);
}

to{
opacity:1;
transform:translateY(0);
}

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

.employee-dashboard{
gap:18px;
}

.employee-dashboard .card{
padding:18px !important;
border-radius:20px;
}

.employee-dashboard .card h2{
font-size:18px !important;
}

.employee-dashboard .attendance-section h2::before,
.employee-dashboard .leave-section h2::before{
width:40px;
height:40px;
font-size:15px;
}

.attendance-btns{
flex-direction:row;
gap:10px;
}

.employee-dashboard .btn{
flex:1;
min-width:auto;
height:42px;
font-size:13px;
padding:0 14px !important;
}

.attendance-row{
padding:13px 14px;
}

}