/* ============================================================
   GLOBAL STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', sans-serif;
}

body {
    background: #0a0e1a;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30, 60, 150, 0.3), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 80, 200, 0.2), transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(40, 40, 180, 0.15), transparent 50%);
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        background:
            radial-gradient(ellipse at 20% 50%, rgba(30, 60, 150, 0.3), transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(20, 80, 200, 0.2), transparent 40%),
            radial-gradient(ellipse at 50% 80%, rgba(40, 40, 180, 0.15), transparent 50%);
    }
    25% {
        background:
            radial-gradient(ellipse at 30% 60%, rgba(40, 80, 200, 0.25), transparent 50%),
            radial-gradient(ellipse at 70% 30%, rgba(60, 60, 220, 0.2), transparent 40%),
            radial-gradient(ellipse at 60% 70%, rgba(30, 50, 160, 0.2), transparent 50%);
    }
    50% {
        background:
            radial-gradient(ellipse at 60% 40%, rgba(50, 100, 220, 0.3), transparent 50%),
            radial-gradient(ellipse at 30% 70%, rgba(30, 60, 180, 0.2), transparent 40%),
            radial-gradient(ellipse at 80% 50%, rgba(60, 40, 200, 0.15), transparent 50%);
    }
    75% {
        background:
            radial-gradient(ellipse at 70% 60%, rgba(40, 80, 200, 0.25), transparent 50%),
            radial-gradient(ellipse at 20% 30%, rgba(60, 60, 220, 0.2), transparent 40%),
            radial-gradient(ellipse at 40% 80%, rgba(30, 50, 160, 0.2), transparent 50%);
    }
    100% {
        background:
            radial-gradient(ellipse at 80% 50%, rgba(30, 60, 150, 0.3), transparent 50%),
            radial-gradient(ellipse at 20% 80%, rgba(20, 80, 200, 0.2), transparent 40%),
            radial-gradient(ellipse at 50% 20%, rgba(40, 40, 180, 0.15), transparent 50%);
    }
}

/* ============================================================
   WAVES
   ============================================================ */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: -20px;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            rgba(60, 120, 255, 0.02) 2px,
            transparent 4px,
            rgba(60, 120, 255, 0.01) 6px,
            transparent 8px);
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    animation: waveMove 20s linear infinite;
}

.wave:nth-child(2) {
    bottom: -40px;
    animation-duration: 25s;
    animation-delay: -5s;
    opacity: 0.5;
    background: repeating-linear-gradient(90deg,
            transparent,
            rgba(100, 80, 255, 0.015) 3px,
            transparent 6px,
            rgba(100, 80, 255, 0.01) 9px,
            transparent 12px);
}

.wave:nth-child(3) {
    bottom: -60px;
    animation-duration: 30s;
    animation-delay: -10s;
    opacity: 0.3;
    background: repeating-linear-gradient(90deg,
            transparent,
            rgba(40, 160, 255, 0.01) 4px,
            transparent 8px,
            rgba(40, 160, 255, 0.005) 12px,
            transparent 16px);
}

@keyframes waveMove {
    0% {
        transform: translateX(0) scaleY(1);
    }
    25% {
        transform: translateX(10%) scaleY(0.8);
    }
    50% {
        transform: translateX(20%) scaleY(1.2);
    }
    75% {
        transform: translateX(30%) scaleY(0.9);
    }
    100% {
        transform: translateX(40%) scaleY(1);
    }
}

/* ============================================================
   PARTICLES
   ============================================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(60, 120, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
}
.particle:nth-child(2) {
    left: 20%;
    animation-duration: 22s;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
}
.particle:nth-child(3) {
    left: 30%;
    animation-duration: 15s;
    animation-delay: 4s;
    width: 2px;
    height: 2px;
}
.particle:nth-child(4) {
    left: 40%;
    animation-duration: 20s;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
}
.particle:nth-child(5) {
    left: 50%;
    animation-duration: 25s;
    animation-delay: 3s;
    width: 3px;
    height: 3px;
}
.particle:nth-child(6) {
    left: 60%;
    animation-duration: 17s;
    animation-delay: 5s;
    width: 6px;
    height: 6px;
}
.particle:nth-child(7) {
    left: 70%;
    animation-duration: 23s;
    animation-delay: 0s;
    width: 2px;
    height: 2px;
}
.particle:nth-child(8) {
    left: 80%;
    animation-duration: 19s;
    animation-delay: 2s;
    width: 4px;
    height: 4px;
}
.particle:nth-child(9) {
    left: 90%;
    animation-duration: 21s;
    animation-delay: 4s;
    width: 3px;
    height: 3px;
}
.particle:nth-child(10) {
    left: 15%;
    animation-duration: 16s;
    animation-delay: 1s;
    width: 5px;
    height: 5px;
}
.particle:nth-child(11) {
    left: 45%;
    animation-duration: 24s;
    animation-delay: 3s;
    width: 2px;
    height: 2px;
}
.particle:nth-child(12) {
    left: 75%;
    animation-duration: 18s;
    animation-delay: 5s;
    width: 4px;
    height: 4px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ============================================================
   STARS
   ============================================================ */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 300px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 400px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 500px 150px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 600px 60px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 700px 100px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 800px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 900px 120px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 1000px 70px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 1100px 90px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 1200px 50px, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

/* ============================================================
   FLOATING ORBS
   ============================================================ */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.floating-orb.orb1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    background: rgba(40, 80, 200, 0.06);
    animation-delay: 0s;
}

.floating-orb.orb2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: rgba(80, 60, 220, 0.05);
    animation-delay: -7s;
    animation-duration: 25s;
}

.floating-orb.orb3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 60%;
    background: rgba(30, 100, 220, 0.04);
    animation-delay: -14s;
    animation-duration: 30s;
}

.floating-orb.orb4 {
    width: 250px;
    height: 250px;
    top: 20%;
    left: 20%;
    background: rgba(60, 40, 200, 0.04);
    animation-delay: -3s;
    animation-duration: 22s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(40px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 40px) scale(0.9);
    }
    75% {
        transform: translate(20px, -30px) scale(1.05);
    }
    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ============================================================
   GLOW LINE
   ============================================================ */
.glow-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(60, 120, 255, 0.1),
            rgba(100, 80, 255, 0.3),
            rgba(60, 120, 255, 0.5),
            rgba(100, 80, 255, 0.3),
            rgba(60, 120, 255, 0.1),
            transparent);
    z-index: 1;
    animation: glowLine 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(60, 120, 255, 0.05);
}

@keyframes glowLine {
    0% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
    100% {
        opacity: 0.3;
        transform: scaleX(1);
    }
}

/* ============================================================
   APP CONTAINER
   ============================================================ */
.app {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.header,
.sidebar,
.welcome,
.info-card,
.section,
.form-container,
.request-card,
.application-card,
.request-card,
.stat-card,
.personal-item,
.activity-item,
.menu-card,
.admin-item,
.user-item,
.modal,
.login-container {
    background: rgba(12, 20, 40, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(60, 120, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.header {
    border-bottom: 1px solid rgba(60, 120, 255, 0.1) !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.header .brand .logo {
    font-size: 28px;
    font-weight: 700;
    color: #e8f0ff;
}

.header .brand .logo .ems {
    color: #6a9fff;
}

.header .brand .logo .system {
    color: #5a6a8a;
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

.header .brand .sub {
    color: #7a8aaa;
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

.header .user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(60, 120, 255, 0.2);
    object-fit: cover;
}

.header .user-info .name {
    color: #e8f0ff;
    font-size: 15px;
    font-weight: 600;
}

.header .user-info .role {
    color: #8899bb;
    font-size: 12px;
    background: rgba(60, 120, 255, 0.08);
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid rgba(60, 120, 255, 0.08);
}

.header .user-info .status {
    color: #80d0a0;
    font-size: 12px;
    font-weight: 500;
}

.header .actions {
    display: flex;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(60, 120, 255, 0.15);
    color: #8899bb;
}

.btn-outline:hover {
    background: rgba(60, 120, 255, 0.05);
    border-color: rgba(60, 120, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #2a5a9a, #1a3a7a);
    border: 1px solid rgba(60, 120, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(60, 120, 255, 0.2);
    background: linear-gradient(135deg, #3a6aaa, #2a4a8a);
}

.btn-success {
    background: linear-gradient(135deg, #2a7a5a, #1a5a4a);
    border: 1px solid rgba(60, 180, 120, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(60, 180, 120, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #7a2a3a, #5a1a2a);
    border: 1px solid rgba(200, 80, 100, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 80, 100, 0.2);
}

.btn-warning {
    background: linear-gradient(135deg, #7a6a2a, #5a4a1a);
    border: 1px solid rgba(200, 180, 60, 0.2);
    color: #d4b87a;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 180, 60, 0.2);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

/* ============================================================
   GRID
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================================
   WELCOME
   ============================================================ */
.welcome {
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.welcome .text h2 {
    color: #e8f0ff;
    font-weight: 500;
    font-size: 22px;
}

.welcome .text h2 span {
    color: #6a9fff;
}

.welcome .text p {
    color: #7a8aaa;
    font-size: 14px;
    margin-top: 2px;
}

.welcome .status-badge {
    background: rgba(60, 180, 120, 0.08);
    border: 1px solid rgba(60, 180, 120, 0.08);
    padding: 6px 18px;
    border-radius: 20px;
    color: #80d0a0;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   INFO CARDS
   ============================================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.info-card {
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
}

.info-card .label {
    color: #7a8aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card .value {
    color: #e8f0ff;
    font-size: 22px;
    font-weight: 600;
    margin-top: 4px;
}

.info-card .value .highlight {
    color: #6a9fff;
}

.info-card .value .no-department {
    color: #7a8aaa;
    font-size: 16px;
    font-weight: 400;
}

.info-card .value .badge-di {
    font-size: 14px;
    background: rgba(60, 120, 200, 0.12);
    color: #80a0d0;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(60, 120, 200, 0.1);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    border-radius: 16px;
    padding: 20px 24px;
}

.section .title {
    color: #c8d8f0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section .title .count {
    background: rgba(60, 120, 255, 0.08);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #6a9fff;
    font-weight: 400;
}

.section .title .badge-pending {
    background: rgba(180, 180, 60, 0.12);
    color: #d4b87a;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
}

/* ============================================================
   REQUEST GRID
   ============================================================ */
.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.request-card {
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.request-card:hover {
    border-color: rgba(60, 120, 255, 0.15) !important;
    transform: translateY(-2px);
}

.request-card .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.request-card .name {
    color: #e8f0ff;
    font-size: 14px;
    font-weight: 500;
}

.request-card .desc {
    color: #7a8aaa;
    font-size: 12px;
    margin-top: 2px;
}

.request-card .badge-new {
    background: rgba(200, 80, 100, 0.12);
    color: #d08090;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.request-card .badge-di {
    background: rgba(60, 120, 200, 0.12);
    color: #80a0d0;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
    border: 1px solid rgba(60, 120, 200, 0.1);
}

/* ============================================================
   ACTIVITY GRID
   ============================================================ */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.activity-item {
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}

.activity-item .num {
    color: #e8f0ff;
    font-size: 24px;
    font-weight: 600;
}

.activity-item .num.green {
    color: #80d0a0;
}
.activity-item .num.yellow {
    color: #d4b87a;
}
.activity-item .num.red {
    color: #d08090;
}
.activity-item .num.blue {
    color: #80b0d0;
}

.activity-item .label {
    color: #7a8aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* ============================================================
   PERSONAL GRID
   ============================================================ */
.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.personal-item {
    border-radius: 10px;
    padding: 12px 16px;
}

.personal-item .label {
    color: #7a8aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.personal-item .value {
    color: #e8f0ff;
    font-size: 15px;
    font-weight: 500;
    margin-top: 2px;
}

.personal-item .value .highlight {
    color: #6a9fff;
}

.personal-item .value .no-department {
    color: #7a8aaa;
    font-weight: 400;
}

.personal-item .value .badge-di {
    font-size: 12px;
    background: rgba(60, 120, 200, 0.12);
    color: #80a0d0;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(60, 120, 200, 0.1);
}

/* ============================================================
   FORM
   ============================================================ */
.form-container {
    border-radius: 16px;
    padding: 24px;
}

.form-container .form-title {
    color: #e8f0ff;
    font-size: 22px;
    font-weight: 500;
    border-bottom: 1px solid rgba(60, 120, 255, 0.06);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.form-container .form-desc {
    color: #7a8aaa;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(8, 16, 35, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(60, 120, 255, 0.04);
}

.form-container .form-group {
    margin-bottom: 16px;
}

.form-container label {
    display: block;
    color: #8899bb;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-container label .required {
    color: #d08090;
}

.form-container input,
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(8, 16, 35, 0.6);
    border: 1px solid rgba(60, 120, 255, 0.08);
    border-radius: 10px;
    color: #e8f0ff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    border-color: rgba(60, 120, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(60, 120, 255, 0.05);
}

.form-container textarea {
    min-height: 80px;
    resize: vertical;
}

.form-container select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a8aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-container select option {
    background: #0a1525;
    color: #e8f0ff;
    padding: 8px;
}

.form-container .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2a5a9a, #1a3a7a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid rgba(60, 120, 255, 0.2);
    transition: all 0.3s ease;
}

.form-container .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(60, 120, 255, 0.2);
    background: linear-gradient(135deg, #3a6aaa, #2a4a8a);
}

.form-container .status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(8, 16, 35, 0.3);
    color: #8899bb;
    text-align: center;
    font-size: 14px;
    border-left: 4px solid rgba(60, 120, 255, 0.15);
}

.form-container .status-ok {
    border-left-color: #80d0a0;
    color: #80d0a0;
}

.form-container .status-err {
    border-left-color: #d08090;
    color: #d08090;
}

.form-container .back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #7a8aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.form-container .back-link:hover {
    color: #e8f0ff;
}

/* ============================================================
   DYNAMIC FIELDS
   ============================================================ */
.dynamic-fields {
    animation: fadeIn 0.3s ease;
    padding-top: 8px;
    border-top: 1px solid rgba(60, 120, 255, 0.04);
    margin-top: 8px;
}

.dynamic-fields .form-group:first-child {
    margin-top: 4px;
}
.dynamic-fields .form-group {
    margin-bottom: 14px;
}
.dynamic-fields .form-group:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SEARCH WRAPPER
   ============================================================ */
.search-wrapper {
    position: relative;
}

#userSearchInput {
    width: 100%;
    padding: 10px 14px;
    background: rgba(8, 16, 35, 0.6);
    border: 1px solid rgba(60, 120, 255, 0.08);
    border-radius: 10px;
    color: #e8f0ff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s;
}

#userSearchInput:focus {
    border-color: rgba(60, 120, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(60, 120, 255, 0.05);
}

#userSearchInput::placeholder {
    color: #5a6a8a;
}

#userSearchInput.has-value {
    border-color: rgba(60, 180, 120, 0.15);
    background: rgba(60, 180, 120, 0.02);
}

.user-list-container {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(12, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 120, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    max-height: 340px;
    overflow: hidden;
    display: none;
}

.user-list-container .search-box {
    padding: 10px 12px 6px 12px;
    border-bottom: 1px solid rgba(60, 120, 255, 0.04);
}

.user-list-container .search-box input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(8, 16, 35, 0.4);
    border: 1px solid rgba(60, 120, 255, 0.06);
    border-radius: 8px;
    color: #e8f0ff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.user-list-container .search-box input:focus {
    border-color: rgba(60, 120, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(60, 120, 255, 0.04);
}

.user-list-container .user-grid {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 8px;
}

.user-list-container .user-grid::-webkit-scrollbar {
    width: 4px;
}
.user-list-container .user-grid::-webkit-scrollbar-track {
    background: rgba(8, 16, 35, 0.2);
    border-radius: 4px;
}
.user-list-container .user-grid::-webkit-scrollbar-thumb {
    background: rgba(60, 120, 255, 0.2);
    border-radius: 4px;
}

.user-list-container .user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(8, 16, 35, 0.1);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
    gap: 8px;
    flex-wrap: wrap;
    cursor: pointer;
}

.user-list-container .user-item:hover {
    border-color: rgba(60, 120, 255, 0.08);
    background: rgba(8, 16, 35, 0.2);
}

.user-list-container .user-item .user-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 120px;
}

.user-list-container .user-item .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a7a, #2a5a9a);
    flex-shrink: 0;
    overflow: hidden;
}

.user-list-container .user-item .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-list-container .user-item .user-avatar .fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.user-list-container .user-item .user-name {
    color: #e8f0ff;
    font-size: 13px;
    font-weight: 500;
}

.user-list-container .user-item .user-name .nick {
    color: #7a8aaa;
    font-weight: 400;
    font-size: 11px;
}

.user-list-container .user-item .user-id {
    color: #4a5a7a;
    font-size: 10px;
    font-family: monospace;
}

.user-list-container .list-footer {
    color: #7a8aaa;
    font-size: 11px;
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid rgba(60, 120, 255, 0.04);
}

.selected-user-display {
    background: rgba(60, 180, 120, 0.06);
    border: 1px solid rgba(60, 180, 120, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 6px;
    color: #80d0a0;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.selected-user-display .remove-btn {
    background: none;
    border: none;
    color: #d08090;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.selected-user-display .remove-btn:hover {
    color: #e8f0ff;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: rgba(180, 180, 60, 0.12);
    color: #d4b87a;
    border: 1px solid rgba(180, 180, 60, 0.1);
}

.status-approved {
    background: rgba(60, 180, 120, 0.12);
    color: #80d0a0;
    border: 1px solid rgba(60, 180, 120, 0.1);
}

.status-rejected {
    background: rgba(200, 80, 100, 0.12);
    color: #d08090;
    border: 1px solid rgba(200, 80, 100, 0.1);
}

/* ============================================================
   RANK BADGE
   ============================================================ */
.rank-badge {
    background: rgba(106, 159, 255, 0.08);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #6a9fff;
}

/* ============================================================
   BADGE DI
   ============================================================ */
.badge-di {
    background: rgba(60, 120, 200, 0.12);
    color: #80a0d0;
    border: 1px solid rgba(60, 120, 200, 0.1);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(60, 120, 255, 0.04);
    text-align: center;
    color: #4a5a7a;
    font-size: 12px;
}

.footer .brand {
    color: #6a8aaa;
    font-weight: 500;
}

.footer .brand .ems {
    color: #6a9fff;
}
.footer .brand .majestic {
    color: #6a9ac0;
}
.footer .brand .memphise {
    color: #b0a0c0;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(8, 16, 35, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: rgba(60, 120, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 120, 255, 0.25);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 14px;
    background: rgba(8, 16, 35, 0.6);
    border: 1px solid rgba(60, 120, 255, 0.08);
    border-radius: 8px;
    color: #e8f0ff;
    font-size: 13px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(60, 120, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(60, 120, 255, 0.05);
}

.filter-bar select option {
    background: #0a1525;
}

.filter-bar input {
    min-width: 120px;
}

.filter-bar .filter-btn {
    padding: 8px 20px;
    background: rgba(60, 120, 255, 0.08);
    border: 1px solid rgba(60, 120, 255, 0.08);
    border-radius: 8px;
    color: #8899bb;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-bar .filter-btn:hover {
    background: rgba(60, 120, 255, 0.12);
    color: #e8f0ff;
}

.filter-bar .filter-id {
    max-width: 120px;
}

.filter-bar .filter-rank {
    max-width: 100px;
}

.filter-reset {
    color: #4a5a7a;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.filter-reset:hover {
    color: #8899bb;
    background: rgba(60, 120, 255, 0.05);
}

/* ============================================================
   APPLICATION CARDS
   ============================================================ */
.application-list,
.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.application-card,
.request-card {
    background: rgba(12, 20, 40, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 120, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.application-card:hover,
.request-card:hover {
    border-color: rgba(60, 120, 255, 0.15);
}

.application-card .app-header,
.request-card .req-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.application-card .app-user,
.request-card .req-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.application-card .app-user .name,
.request-card .req-user .name {
    color: #e8f0ff;
    font-size: 16px;
    font-weight: 500;
}

.application-card .app-user .dept,
.request-card .req-user .dept {
    color: #8899bb;
    font-size: 13px;
    background: rgba(60, 120, 255, 0.06);
    padding: 1px 12px;
    border-radius: 12px;
}

.application-card .app-user .id,
.request-card .req-user .id {
    color: #4a5a7a;
    font-size: 11px;
    font-family: monospace;
}

.application-card .app-user .app-number,
.request-card .req-user .req-number {
    color: #6a9fff;
    font-size: 12px;
    font-weight: 600;
    background: rgba(60, 120, 255, 0.06);
    padding: 1px 10px;
    border-radius: 10px;
    margin-left: 6px;
}

.application-card .app-status,
.request-card .req-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.application-card .app-details,
.request-card .req-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 24px;
    margin: 8px 0 12px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(60, 120, 255, 0.04);
    border-bottom: 1px solid rgba(60, 120, 255, 0.04);
}

.application-card .app-details .detail,
.request-card .req-details .detail {
    color: #8899bb;
    font-size: 13px;
}

.application-card .app-details .detail strong,
.request-card .req-details .detail strong {
    color: #e8f0ff;
    font-weight: 500;
}

.application-card .app-reason,
.request-card .req-reason {
    color: #c8d8f0;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(8, 16, 35, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid rgba(60, 120, 255, 0.15);
}

.application-card .app-reason.approved-reason,
.request-card .req-reason.approved-reason {
    border-left-color: rgba(60, 180, 120, 0.3);
}

.application-card .app-reason.rejected-reason,
.request-card .req-reason.rejected-reason {
    border-left-color: rgba(200, 80, 100, 0.3);
}

.application-card .app-actions,
.request-card .req-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    align-items: center;
}

.application-card .app-actions .reject-form,
.request-card .req-actions .reject-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.application-card .app-actions .reject-form input,
.request-card .req-actions .reject-form input {
    flex: 1;
    min-width: 120px;
    padding: 6px 12px;
    background: rgba(8, 16, 35, 0.6);
    border: 1px solid rgba(60, 120, 255, 0.08);
    border-radius: 6px;
    color: #e8f0ff;
    font-size: 13px;
    outline: none;
}

.application-card .app-actions .reject-form input:focus,
.request-card .req-actions .reject-form input:focus {
    border-color: rgba(60, 120, 255, 0.3);
}

.application-card .app-actions .reject-form input::placeholder,
.request-card .req-actions .reject-form input::placeholder {
    color: #5a6a8a;
    font-size: 12px;
}

.app-meta,
.req-meta {
    color: #4a5a7a;
    font-size: 11px;
    margin-top: 6px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty {
    color: #7a8aaa;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* ============================================================
   MESSAGES
   ============================================================ */
.message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message-success {
    background: rgba(60, 180, 120, 0.08);
    border: 1px solid rgba(60, 180, 120, 0.08);
    color: #80d0a0;
}

.message-error {
    background: rgba(200, 80, 100, 0.08);
    border: 1px solid rgba(200, 80, 100, 0.08);
    color: #d08090;
}

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: rgba(12, 20, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(60, 120, 255, 0.04);
}

.stat-card .num {
    font-size: 28px;
    font-weight: 600;
    color: #e8f0ff;
}

.stat-card .num.green {
    color: #80d0a0;
}
.stat-card .num.yellow {
    color: #d4b87a;
}
.stat-card .num.blue {
    color: #80b0d0;
}
.stat-card .num.red {
    color: #d08090;
}

.stat-card .label {
    color: #7a8aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    .header .user-info {
        flex-wrap: wrap;
    }
    .header .actions {
        flex-wrap: wrap;
    }
    .header .actions .btn {
        flex: 1;
        justify-content: center;
    }
    .welcome {
        flex-direction: column;
        text-align: center;
    }
    .info-cards {
        grid-template-columns: 1fr 1fr;
    }
    .request-grid {
        grid-template-columns: 1fr 1fr;
    }
    .activity-grid {
        grid-template-columns: 1fr 1fr;
    }
    .personal-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .user-list-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-height: 80vh;
        border-radius: 16px;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar input,
    .filter-bar select {
        width: 100%;
        max-width: none !important;
    }
    .application-card .app-details,
    .request-card .req-details {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .application-card .app-details,
    .request-card .req-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .application-card .app-details,
    .request-card .req-details {
        grid-template-columns: 1fr;
    }
}