:root{
    --navy:#062348;
    --blue:#0d6efd;
    --cyan:#1bc7f2;
    --soft:#eef7ff;
    --white:rgba(255,255,255,.86);
    --glass:rgba(255,255,255,.70);
    --shadow:0 18px 50px rgba(4,35,75,.18);
}

* { box-sizing:border-box; }

body{
    min-height:100vh;
    margin:0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:#0f172a;
    background:
        radial-gradient(circle at 20% 10%, rgba(27,199,242,.36), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(13,110,253,.22), transparent 28%),
        linear-gradient(135deg,#dff5ff 0%,#eef7ff 38%,#f8fbff 100%);
    overflow-x:hidden;
}

/* Animated water background */
body::before{
    content:"";
    position:fixed;
    inset:-20%;
    z-index:-3;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,.55) 0 2px, transparent 3px),
        radial-gradient(circle at 65% 60%, rgba(255,255,255,.45) 0 2px, transparent 4px),
        radial-gradient(circle at 70% 25%, rgba(255,255,255,.35) 0 1px, transparent 3px);
    background-size:260px 260px, 340px 340px, 220px 220px;
    animation:bubbles 18s linear infinite;
    opacity:.8;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255,255,255,.28) 18%, transparent 36%),
        repeating-radial-gradient(ellipse at center, rgba(13,110,253,.10) 0 2px, transparent 2px 24px);
    filter:blur(.2px);
    opacity:.75;
    animation:waterMove 14s ease-in-out infinite alternate;
}

@keyframes waterMove{
    0%{ transform:translate3d(-22px,-10px,0) scale(1.04); }
    50%{ transform:translate3d(18px,12px,0) scale(1.08); }
    100%{ transform:translate3d(-8px,24px,0) scale(1.05); }
}
@keyframes bubbles{
    0%{ transform:translateY(80px); }
    100%{ transform:translateY(-120px); }
}

.topbar{
    background:linear-gradient(135deg, rgba(7,58,125,.96), rgba(3,30,65,.96));
    color:white;
    box-shadow:0 12px 35px rgba(6,35,72,.25);
    backdrop-filter: blur(18px);
}

.brand{
    font-weight:950;
    letter-spacing:.3px;
    display:flex;
    align-items:center;
    gap:.65rem;
}

.brand-drop{
    width:42px;
    height:42px;
    border-radius:14px;
    background:linear-gradient(135deg,#46d7ff,#0d6efd);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 12px 25px rgba(27,199,242,.38);
}

.sidebar-card{
    background:rgba(255,255,255,.82);
    border:1px solid rgba(255,255,255,.7);
    border-radius:26px;
    box-shadow:var(--shadow);
    min-height:calc(100vh - 140px);
    backdrop-filter: blur(16px);
}

.side-title{
    color:#64748b;
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:950;
    margin:8px 0 14px;
}

.side-link{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    margin-bottom:10px;
    border-radius:16px;
    text-decoration:none;
    color:#0f172a;
    font-weight:900;
    border:1px solid rgba(226,232,240,.8);
    background:rgba(255,255,255,.62);
    transition:.18s ease;
}

.side-link:hover{
    background:linear-gradient(135deg,rgba(13,110,253,.13),rgba(27,199,242,.10));
    color:#0d6efd;
    transform:translateX(4px);
    box-shadow:0 10px 24px rgba(13,110,253,.13);
}

.side-icon{
    width:34px;
    height:34px;
    min-width:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:linear-gradient(135deg,#e8f6ff,#ffffff);
    box-shadow:inset 0 0 0 1px rgba(13,110,253,.13);
    font-size:18px;
}

.side-text{
    display:inline-block;
    white-space:normal;
    line-height:1.2;
}

.content-card,
.card{
    background:var(--glass);
    border:1px solid rgba(255,255,255,.75);
    border-radius:26px;
    box-shadow:var(--shadow);
    backdrop-filter: blur(16px);
}

.page-title{
    font-weight:950;
    color:#082246;
    letter-spacing:-.02em;
}

.hero-flow{
    background:
        linear-gradient(135deg,rgba(13,110,253,.14),rgba(27,199,242,.16)),
        rgba(255,255,255,.70);
    border:1px solid rgba(255,255,255,.8);
}

.stat-card{
    min-height:132px;
    border-left:8px solid var(--blue);
    position:relative;
    overflow:hidden;
}
.stat-card::after{
    content:"";
    position:absolute;
    right:-40px;
    top:-40px;
    width:120px;
    height:120px;
    border-radius:50%;
    background:rgba(27,199,242,.16);
}

.department-card{
    min-height:190px;
    transition:.18s ease;
    position:relative;
    overflow:hidden;
}
.department-card:hover{
    transform:translateY(-5px);
    box-shadow:0 22px 55px rgba(4,35,75,.20);
}
.department-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,rgba(255,255,255,.20),transparent 42%);
    pointer-events:none;
}

.table{
    overflow:hidden;
    border-radius:16px;
}
.table thead th{
    background:linear-gradient(135deg,#073a7d,#062348);
    color:white;
    white-space:nowrap;
    border:0;
}
.table tbody td{
    background:rgba(255,255,255,.58);
}

.btn{
    border-radius:14px;
    font-weight:900;
}
.form-control,
.form-select{
    border-radius:14px;
    padding:11px 13px;
    border:1px solid rgba(148,163,184,.45);
    background:rgba(255,255,255,.82);
}

.language-pill{
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
}
.top-action{
    border:1px solid rgba(255,255,255,.35);
}

.login-water{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.login-card{
    width:100%;
    max-width:500px;
    border-radius:30px;
    overflow:hidden;
    background:rgba(255,255,255,.78);
    border:1px solid rgba(255,255,255,.75);
    box-shadow:0 30px 90px rgba(4,35,75,.28);
    backdrop-filter: blur(18px);
}
.logo-water{
    width:82px;
    height:82px;
    border-radius:26px;
    background:linear-gradient(135deg,#46d7ff,#0d6efd,#062348);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    margin:auto;
    box-shadow:0 18px 38px rgba(13,110,253,.33);
}

@media (max-width:991px){
    .sidebar-card{ min-height:auto; }
}
