
/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg:#020817;
    --card:#0f172a;
    --border:rgba(255,255,255,0.08);
    --text:#ffffff;
    --muted:#94a3b8;
    --primary:#6366f1;
    --primary2:#7c3aed;
    --success:#10b981;
    --danger:#ef4444;
}

html,
body{
    width:100%;
    min-height:100vh;
    background:radial-gradient(circle at top,#0f1b46 0%,#020817 65%);
    color:var(--text);
    font-family:'Segoe UI',sans-serif;
}

body{
    overflow-x:hidden;
}

.full-page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* HEADER */
.header{
    height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.header-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:18px;
    font-weight:700;
}

/* MAIN */
.main-container{
    flex:1;
    width:100%;
    max-width:1600px;
    margin:auto;
    padding:30px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

/* HERO */
.hero{
    text-align:center;
    margin-bottom:35px;
}

.hero h2{
    font-size:64px;
    font-weight:900;
    margin-bottom:12px;
    color:#f8fafc;
}

.hero p{
    color:var(--muted);
    font-size:18px;
}

/* LAYOUT */
.two-columns{
    width:100%;
    display:flex;
    gap:25px;
    align-items:flex-start;
}

/* LOGIN CARD */
.login-card{
    width:380px;
    background:rgba(15,23,42,.95);
    border:1px solid var(--border);
    border-radius:28px;
    padding:30px;
    box-shadow:0 10px 40px rgba(0,0,0,.4);
}

.login-card h3{
    font-size:42px;
    margin-bottom:10px;
}

.subtitle{
    color:var(--muted);
    margin-bottom:25px;
    font-size:14px;
    text-transform:uppercase;
}

/* CALENDAR */
.calendar-card{
    flex:1;
    background:rgba(15,23,42,.95);
    border:1px solid var(--border);
    border-radius:28px;
    padding:22px;
    box-shadow:0 10px 40px rgba(0,0,0,.4);
}

.calendar-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.calendar-title{
    display:flex;
    align-items:center;
    gap:12px;
}

.calendar-title h3{
    font-size:32px;
}

.calendar-nav{
    display:flex;
    align-items:center;
    gap:10px;
}

.month-name{
    font-size:20px;
    font-weight:700;
    min-width:150px;
    text-align:center;
}

.nav-btn{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    background:#0b1220;
    border:1px solid var(--border);
    transition:.25s;
}

.nav-btn:hover{
    background:var(--primary);
}

/* GRID */
.calendar-wrapper{
    overflow:hidden;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.05);
}

.weekdays,
.days{
    display:grid;
    grid-template-columns:repeat(7,1fr);
}

.weekday{
    text-align:center;
    padding:16px;
    background:#0b1220;
    color:var(--muted);
    font-weight:700;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.day{
    min-height:120px;
    padding:10px;
    border-right:1px solid rgba(255,255,255,0.05);
    border-bottom:1px solid rgba(255,255,255,0.05);
    transition:.25s;
    cursor:pointer;
    position:relative;
}

.day:hover{
    background:rgba(99,102,241,0.12);
}

.day.today{
    background:rgba(99,102,241,0.18);
}

.day-number{
    font-size:15px;
    font-weight:700;
    margin-bottom:8px;
}

.event-item{
    background:linear-gradient(135deg,#10b981,#059669);
    padding:4px 8px;
    border-radius:8px;
    font-size:11px;
    margin-bottom:6px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.event-more{
    font-size:11px;
    color:var(--muted);
}

.legend{
    display:flex;
    gap:20px;
    padding:15px;
    background:#0b1220;
    font-size:13px;
}

.legend-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
    margin-right:6px;
}

.legend-dot.approved{
    background:#10b981;
}

.legend-dot.today{
    background:#6366f1;
}

/* FORM */
.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    color:#cbd5e1;
    font-size:14px;
}

.form-group input{
    width:100%;
    height:54px;
    background:#0b1220;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:0 15px;
    color:#fff;
    outline:none;
    font-size:15px;
}

.password-wrapper{
    position:relative;
}

.password-toggle{
    position:absolute;
    top:50%;
    right:15px;
    transform:translateY(-50%);
    border:none;
    background:none;
    color:#94a3b8;
    cursor:pointer;
}

/* BUTTON */
.btn-login,
.btn-action{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    font-weight:700;
    font-size:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
    text-decoration:none;
    margin-top:12px;
    transition:.25s;
}

.btn-login,
.btn-dashboard{
    background:linear-gradient(135deg,#6366f1,#7c3aed);
    color:#fff;
}

.btn-leave{
    background:linear-gradient(135deg,#10b981,#059669);
    color:#fff;
}

.btn-logout{
    background:linear-gradient(135deg,#ef4444,#dc2626);
    color:#fff;
}

.btn-login:hover,
.btn-action:hover{
    transform:translateY(-2px);
}

/* ERROR */
.error-message{
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.3);
    color:#fca5a5;
    padding:12px;
    border-radius:12px;
    margin-bottom:15px;
    display:none;
}

.error-message.show{
    display:block;
}

/* FOOTER */
.footer{
    border-top:1px solid rgba(255,255,255,.06);
    text-align:center;
    padding:18px;
    color:var(--muted);
    font-size:14px;
}

/* MODAL */
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
    padding:20px;
}

.modal.open{
    display:flex;
}

.modal-content{
    width:100%;
    max-width:600px;
    background:#0f172a;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
}

.modal-header{
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.modal-body{
    padding:20px;
}

.modal-close{
    width:40px;
    height:40px;
    border:none;
    border-radius:10px;
    background:#0b1220;
    color:#fff;
    cursor:pointer;
}

.event-detail{
    padding:15px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px;
    margin-bottom:15px;
}

.event-name{
    font-size:18px;
    font-weight:700;
    margin-bottom:8px;
}

.event-type,
.event-date,
.event-reason{
    color:#cbd5e1;
    margin-bottom:6px;
}

/* NOTIFICATION */
.notification-wrapper{
    position:relative;
}

.notification-btn{
    width:48px;
    height:48px;
    border:none;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    position:relative;
    cursor:pointer;
}

.notification-badge{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:22px;
    height:22px;
    background:#ef4444;
    border-radius:999px;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    padding:0 6px;
}

.notification-dropdown{
    position:absolute;
    top:60px;
    right:0;
    width:350px;
    background:#0f172a;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
    display:none;
    z-index:100;
}

.notification-dropdown.open{
    display:block;
}

.notification-header{
    padding:15px;
    border-bottom:1px solid rgba(255,255,255,.06);
    display:flex;
    justify-content:space-between;
}

.notification-item{
    padding:15px;
    border-bottom:1px solid rgba(255,255,255,.05);
    cursor:pointer;
}

.notification-item:hover{
    background:rgba(99,102,241,.08);
}

.notification-title{
    font-weight:700;
    margin-bottom:5px;
}

.notification-desc,
.notification-time{
    color:#94a3b8;
    font-size:13px;
}

/* MOBILE */
@media(max-width:1100px){

    .two-columns{
        flex-direction:column;
    }

    .login-card{
        width:100%;
        order:-1;
    }

    .hero h2{
        font-size:42px;
    }
}

@media(max-width:768px){

    .main-container{
        padding:15px;
    }

    .hero h2{
        font-size:30px;
    }

    .calendar-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .month-name{
        min-width:auto;
    }

    .day{
        min-height:90px;
        padding:5px;
    }

    .event-item{
        font-size:9px;
        padding:3px 5px;
    }

    .calendar-title h3{
        font-size:22px;
    }

    .login-card h3{
        font-size:32px;
    }

    .notification-dropdown{
        width:300px;
        right:-20px;
    }
}
