* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #8E0000, #FF1744);
    --primary-solid: #B71C1C;
    --bg-primary: #07070D;
    --bg-section: rgba(18, 18, 28, 0.85);
    --bg-card: rgba(28, 28, 40, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #F5F5F5;
    --text-secondary: #B0B3C0;
    --text-muted: #6C6F80;
    --success: #00E676;
    --warning: #FFD600;
    --danger: #FF1744;
    --info: #29B6F6;
    --glow-red: 0 0 20px rgba(255, 23, 68, 0.4);
    --glow-green: 0 0 15px rgba(0, 230, 118, 0.3);
    --glow-blue: 0 0 15px rgba(41, 182, 246, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.07);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL ========== */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== ULTRA-VISIBILITY CALENDAR FIX ========== */
/* Makes the native browser calendar icons bright for Dark Mode */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.8) saturate(5) hue-rotate(300deg);
    cursor: pointer;
    transition: var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.2);
    filter: invert(1) brightness(2.5) saturate(8) hue-rotate(300deg);
}

/* High-Canggih Glow for FontAwesome Calendar Icons */
.fa-calendar,
.fa-calendar-alt,
.fa-calendar-check,
.fa-calendar-day,
.fa-calendar-days,
.fa-calendar-check-double {
    color: #FF1744 !important;
    /* Brighter Red/Pink */
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.4));
    animation: calGlowPulse 4s infinite ease-in-out;
}

@keyframes calGlowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 23, 68, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 23, 68, 0.6));
        transform: scale(1.1);
    }
}

/* Animated Background */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #FF1744;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #8E0000;
    top: 60%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #29B6F6;
    bottom: -5%;
    left: 40%;
    animation-delay: -14s;
    opacity: 0.12;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* ========== LAYOUT ========== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 270px;
    background: rgba(12, 12, 20, 0.92);
    background: rgba(12, 12, 20, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 16px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: var(--border-glass);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 23, 68, 0.3);
    border-radius: 4px;
}

.sidebar-brand {
    padding: 0 16px;
    margin-bottom: 12px;
}

.sidebar-brand h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
}

.sidebar-brand p {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ARENA 303 GLOWING LOGO SYSTEM */
.arena-logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.arena-logo-wrapper.sidebar-style {
    align-items: flex-start;
    padding: 0;
    margin-bottom: 25px;
}

.arena-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.arena-logo.sidebar-style {
    font-size: 24px;
    letter-spacing: 2px;
}

.logo-white {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.2);
}

.logo-red {
    color: #FF1744;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8),
        0 0 20px rgba(255, 23, 68, 0.4),
        0 0 40px rgba(255, 23, 68, 0.2);
    animation: neonRedFlicker 3s infinite alternate;
}

.arena-subtitle {
    font-size: 9px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.sidebar-style .arena-subtitle {
    font-size: 7px;
    letter-spacing: 3px;
}

.logo-glow-effect {
    position: absolute;
    width: 150%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes neonRedFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow: 0 0 10px rgba(255, 23, 68, 0.8), 0 0 20px rgba(255, 23, 68, 0.4), 0 0 40px rgba(255, 23, 68, 0.2);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        opacity: 0.8;
    }
}


/* ==========================================================================
   IZIN KELUAR (PERMISSION SYSTEM) CUSTOM STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

.timer-section-box {
    position: relative;
    overflow: hidden;
}

.timer-section-box.warning {
    border-color: rgba(255, 215, 64, 0.4) !important;
    background: rgba(255, 215, 64, 0.05) !important;
}

.timer-section-box.warning #timerDisplay {
    color: #ffd740 !important;
    text-shadow: 0 0 30px rgba(255, 214, 64, 0.3) !important;
}

.timer-section-box.danger {
    border-color: rgba(255, 23, 68, 0.4) !important;
    background: rgba(255, 23, 68, 0.05) !important;
}

.timer-section-box.danger #timerDisplay {
    color: #ff1744 !important;
    text-shadow: 0 0 30px rgba(255, 23, 68, 0.4) !important;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-badge.warning {
    background: rgba(255, 215, 64, 0.1);
    color: #ffd740;
    border: 1px solid rgba(255, 215, 64, 0.2);
}

.status-badge.late {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.status-badge.ontime {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.remaining-time {
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.remaining-time.green {
    color: #00e676;
}

.remaining-time.yellow {
    color: #ffd740;
}

.remaining-time.red {
    color: #ff1744;
}

#staffSummaryCard .good {
    color: #00e676 !important;
}

#staffSummaryCard .warning {
    color: #ffd740 !important;
}

#staffSummaryCard .danger {
    color: #ff1744 !important;
}

/* Modal specific for Izin Keluar */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.show .modal {
    transform: scale(1);
    opacity: 1;
}

/* Profile Card */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 8px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    transition: var(--transition);
}

.sidebar-profile:hover {
    border-color: rgba(255, 23, 68, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    box-shadow: var(--glow-red);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-display {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-role {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-role-display {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}


.sidebar-menu {
    list-style: none;
    margin-top: 8px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.sidebar-menu a:hover {
    background: rgba(255, 23, 68, 0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-menu a:hover::before {
    transform: scaleY(1);
}

.sidebar-menu li.active a {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-red);
}

.sidebar-menu li.active a::before {
    display: none;
}

/* Menu divider */
.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 16px 16px;
}

.menu-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 8px 16px;
    margin-top: 8px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    margin-left: 270px;
    padding: 0 32px;
    position: relative;
}

/* ========== NAVBAR ========== */
.navbar {
    height: 72px;
    background: rgba(12, 12, 20, 0.75);
    background: rgba(12, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--border-glass);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 30px;
    width: 320px;
    border: var(--border-glass);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: rgba(255, 23, 68, 0.4);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.1);
}

.search-bar i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 14px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 13.5px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.premium-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition);
    user-select: none;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.premium-clock:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 23, 68, 0.2);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.05);
}

.premium-clock .time-main {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.premium-clock .clock-hours,
.premium-clock .clock-minutes,
.premium-clock .clock-seconds {
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.premium-clock .clock-separator {
    color: var(--danger);
    opacity: 0.8;
    animation: clockBlink 1s infinite;
}

.premium-clock .clock-seconds-wrapper {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 2px;
}

.premium-clock .date-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-clock .date-sub::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

@keyframes clockBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.notification-icon {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: var(--border-glass);
    transition: var(--transition);
}

.notification-icon:hover {
    background: rgba(255, 23, 68, 0.1);
    box-shadow: var(--glow-red);
}

.notification-icon i {
    font-size: 18px;
    color: var(--text-secondary);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glow-red);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.08);
}

.avatar span {
    color: white;
    font-weight: 700;
    font-size: 15px;
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 24px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
}

.welcome-section {
    margin: 32px 0;
}

.welcome-section .breadcrumb {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ========== STAT CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    transition: var(--transition);
    border: var(--border-glass);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow-red);
    border-color: rgba(255, 23, 68, 0.25);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 23, 68, 0.08);
    color: var(--danger);
    font-size: 20px;
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 20px;
}

.stat-trend.up {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.stat-trend.down {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
}

/* ========== CHARTS ========== */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-container {
    background: var(--bg-section);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: var(--border-glass);
    transition: var(--transition);
}

.chart-container:hover {
    border-color: rgba(255, 23, 68, 0.15);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-title i {
    color: var(--danger);
    font-size: 14px;
}

.chart-wrapper {
    height: 300px;
    position: relative;
}

/* ========== TABLES ========== */
.table-section {
    background: var(--bg-section);
    background: rgba(25, 25, 45, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    border: var(--border-glass);
}

.table-section h3 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
}

.table-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.tab {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 18px;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    border-radius: 30px;
    background: var(--bg-card);
    border: var(--border-glass);
    transition: var(--transition);
}

.tab:hover {
    background: rgba(255, 23, 68, 0.08);
    color: var(--text-primary);
}

.tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-red);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 23, 68, 0.2);
    border-radius: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    contain: content;
}

th {
    text-align: left;
    padding: 14px 20px;
    background: rgba(255, 23, 68, 0.04);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: var(--border-glass);
}

th:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

th:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 13.5px;
}

tr {
    transition: var(--transition);
}

tr:hover td {
    background: rgba(255, 23, 68, 0.04);
}

/* ========== BADGES ========== */
.badge-status {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-success {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.05));
    color: var(--success);
    border-color: rgba(0, 230, 118, 0.3);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.2), rgba(255, 214, 0, 0.05));
    color: var(--warning);
    border-color: rgba(255, 214, 0, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(255, 23, 68, 0.05));
    color: var(--danger);
    border-color: rgba(255, 23, 68, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.2), rgba(41, 182, 246, 0.05));
    color: var(--info);
    border-color: rgba(41, 182, 246, 0.3);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.3), rgba(255, 23, 68, 0.1));
    color: #fff;
    border-color: rgba(255, 23, 68, 0.4);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 13.5px;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 23, 68, 0.4);
    color: var(--danger);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255, 23, 68, 0.08);
    box-shadow: var(--glow-red);
    transform: translateY(-2px);
}

/* ========== TOGGLE SWITCH ========== */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(108, 111, 128, 0.4);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
    background: var(--danger);
    box-shadow: var(--glow-red);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* ========== FILTER SECTION ========== */
.filter-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    background: rgba(28, 28, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    outline: none;
    min-width: 150px;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236C6F80' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.filter-select:hover {
    border-color: rgba(255, 23, 68, 0.4);
    background-color: rgba(40, 40, 60, 0.95);
}

.filter-select option {
    background: #12121c;
    color: #fff;
    padding: 10px;
}

select option {
    background: #1a1a2e;
    color: #fff;
}

.filter-select:focus {
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.2);
}

/* ========== FORM ========== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    outline: none;
    font-size: 13.5px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--danger);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.15);
}

.form-control option {
    background-color: #1a1a24;
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
}

.form-control optgroup {
    background-color: #0c0c14;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Sophisticated Nominal Display */
.nominal-premium {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.nominal-positive {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

/* Canggih Checkmark Indicator */
.checkmark-canggih {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00C853, #00E676);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: checkmarkPulse 2s infinite ease-in-out;
}

@keyframes checkmarkPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(0, 230, 118, 0.6);
    }
}

.checkmark-canggih i {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ========== ACTION ICONS ========== */
.action-icons {
    display: flex;
    gap: 12px;
}

.action-icons i {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.action-icons i:hover {
    color: var(--danger);
    background: rgba(255, 23, 68, 0.1);
}

/* ========== PAGES ========== */
.page {
    display: none;
    will-change: opacity, transform;
    contain: layout style;
}

.page.active-page {
    display: block;
    animation: fadeInPage 0.18s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PROGRESS BARS ========== */
.ranking-item {
    margin-bottom: 18px;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.ranking-header .name {
    font-size: 14px;
    font-weight: 500;
}

.ranking-header .count {
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
}

.ranking-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.ranking-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

/* ========== STATUS DOT ========== */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: var(--success);
}

.status-dot.warning {
    background: var(--warning);
}

.status-dot.offline {
    background: var(--danger);
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-section);
    width: 540px;
    max-width: 90vw;
    border-radius: var(--radius-xl);
    padding: 28px;
    border: var(--border-glass);
    animation: modalIn 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-weight: 600;
    font-size: 18px;
}

.modal-close {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
}

/* ========== NOTIFICATION DROPDOWN ========== */
.notification-dropdown {
    position: absolute;
    top: 54px;
    right: 0;
    width: 340px;
    background: rgba(18, 18, 28, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 200;
    animation: dropIn 0.25s ease-out;
}

.notification-dropdown.show {
    display: block;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    padding: 16px 20px;
    border-bottom: var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.notif-header span {
    font-size: 12px;
    color: var(--danger);
    cursor: pointer;
}

.notif-item {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notif-item:hover {
    background: rgba(255, 23, 68, 0.05);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-icon.red {
    background: rgba(255, 23, 68, 0.12);
    color: var(--danger);
}

.notif-icon.green {
    background: rgba(0, 230, 118, 0.12);
    color: var(--success);
}

.notif-icon.blue {
    background: rgba(41, 182, 246, 0.12);
    color: var(--info);
}

.notif-icon.yellow {
    background: rgba(255, 214, 0, 0.12);
    color: var(--warning);
}

.notif-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notif-text strong {
    color: var(--text-primary);
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 9999;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9);
    }

    .main-content {
        margin-left: 0;
        padding: 0 16px;
        width: 100vw;
        overflow-x: hidden;
    }

    .sidebar-toggle {
        display: block;
    }

    .stats-grid,
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        display: none;
    }

    .live-clock {
        display: none;
    }

    .premium-clock {
        transform: scale(0.85);
        transform-origin: right center;
    }

    .system-pulse-bar {
        display: none !important;
    }

    .navbar {
        padding: 0 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 23, 68, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 23, 68, 0.4);
}

/* ========== INVENTORIS TAB ========== */
.inventoris-tab {
    display: block;
}

/* ========== ANIMATE ON SCROLL ========== */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== VIEW TOGGLE BUTTONS ========== */
.btn-view {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.btn-view:hover {
    color: var(--text-primary);
    background: rgba(255, 23, 68, 0.08);
}

.btn-view.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-red);
}

/* ========== LINK CARD GRID ========== */
.link-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.link-card {
    background: var(--bg-section);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: var(--border-glass);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-red);
    border-color: rgba(255, 23, 68, 0.2);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card.inactive {
    opacity: 0.55;
    filter: grayscale(0.3);
}

.link-card.inactive:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

.link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.link-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 23, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 18px;
    flex-shrink: 0;
}

.link-card-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.link-card-cat {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.link-card-url {
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-card-url:hover {
    background: rgba(255, 23, 68, 0.06);
    color: var(--text-primary);
}

.link-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.link-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(18, 18, 28, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: var(--text-primary);
}

.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .link-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== JOBDESK ENHANCEMENTS ========== */
.badge-status.badge-info {
    background: rgba(41, 182, 246, 0.1);
    color: var(--info);
}

.badge-status.badge-warning {
    background: rgba(255, 214, 0, 0.1);
    color: var(--warning);
}

.badge-status.badge-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.badge-status.badge-danger {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
}

.action-icons i {
    cursor: pointer;
    margin: 0 4px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-muted);
}

.action-icons i:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.fa-edit:hover {
    color: var(--info) !important;
}

.fa-trash:hover {
    color: var(--danger) !important;
}

#modalPreviewImg {
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.table-responsive tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ========== LOGIN PAGE STYLES ========== */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(18, 18, 28, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 23, 68, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 23, 68, 0.1);
    position: relative;
    z-index: 10001;
    animation: slideInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.login-brand {
    text-align: center;
    margin-bottom: 35px;
}

.login-brand h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
}

.login-brand p {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-form .form-group {
    margin-bottom: 25px;
    display: block;
}

.login-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: left;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.login-input {
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 15px 0 45px;
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.login-input:focus {
    outline: none;
    border-color: #FF1744;
    background: rgba(255, 23, 68, 0.05);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.15);
}

.login-input:focus~i {
    color: #FF1744;
}

.btn-login {
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(255, 23, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 23, 68, 0.4);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== MISTAKE INPUT MODAL (SUPER CANGGIH) ========== */

/* Tambah Mistake Button */
.mistake-add-btn {
    position: relative;
    overflow: hidden;
    padding: 12px 28px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #b71c1c 0%, #ff1744 50%, #d50000 100%) !important;
    border: 1px solid rgba(255, 23, 68, 0.5) !important;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.mistake-add-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 35px rgba(255, 23, 68, 0.5), 0 0 20px rgba(255, 23, 68, 0.3) !important;
}

.mistake-add-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

.mistake-add-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: mistake-btn-shine 4s ease-in-out infinite;
}

@keyframes mistake-btn-shine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* Modal Container */
.mistake-modal-canggih {
    background: linear-gradient(145deg, rgba(16, 16, 28, 0.97) 0%, rgba(10, 10, 18, 0.98) 100%) !important;
    border: 1px solid rgba(255, 23, 68, 0.25) !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 23, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    max-height: 90vh !important;
    animation: mistakeModalIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes mistakeModalIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(30px) rotateX(5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
    }
}

/* Modal Icon */
.mistake-modal-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2) 0%, rgba(255, 23, 68, 0.05) 100%);
    border: 1px solid rgba(255, 23, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ff1744;
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.15);
    animation: mistakeIconPulse 3s ease-in-out infinite;
}

@keyframes mistakeIconPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 23, 68, 0.15);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 23, 68, 0.3), 0 0 60px rgba(255, 23, 68, 0.1);
    }
}

/* Form Grid */
.mistake-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* Form Group */
.mistake-form-group {
    position: relative;
}

/* Labels */
.mistake-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.mistake-label i {
    font-size: 13px;
    filter: drop-shadow(0 0 3px currentColor);
}

/* Inputs */
.mistake-input {
    width: 100%;
    height: 48px;
    background: rgba(12, 12, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.mistake-input:focus {
    border-color: rgba(255, 23, 68, 0.5);
    background: rgba(255, 23, 68, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.08), 0 0 20px rgba(255, 23, 68, 0.1);
}

.mistake-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(12, 12, 20, 0.8);
}

.mistake-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

/* Select specific */
select.mistake-input {
    cursor: pointer;
    padding-right: 35px;
}

select.mistake-input option {
    background: #0c0c14;
    color: #fff;
    padding: 10px;
}

/* Textarea */
.mistake-textarea {
    height: auto !important;
    min-height: 100px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.6;
}

/* Level Severity Selector */
.mistake-level-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mistake-level-option {
    cursor: pointer;
    position: relative;
}

.mistake-level-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 14px;
    background: rgba(12, 12, 20, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.level-card i {
    font-size: 22px;
    transition: all 0.3s;
}

.level-card span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.level-card small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ringan */
.level-ringan .level-card i {
    color: rgba(0, 230, 118, 0.5);
}

.level-ringan input:checked~.level-card {
    border-color: rgba(0, 230, 118, 0.6);
    background: rgba(0, 230, 118, 0.06);
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.15), inset 0 0 15px rgba(0, 230, 118, 0.03);
    transform: translateY(-2px);
}

.level-ringan input:checked~.level-card i {
    color: #00e676;
    filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.4));
}

.level-ringan input:checked~.level-card span {
    color: #00e676;
}

/* Sedang */
.level-sedang .level-card i {
    color: rgba(255, 160, 0, 0.5);
}

.level-sedang input:checked~.level-card {
    border-color: rgba(255, 160, 0, 0.6);
    background: rgba(255, 160, 0, 0.06);
    box-shadow: 0 0 25px rgba(255, 160, 0, 0.15), inset 0 0 15px rgba(255, 160, 0, 0.03);
    transform: translateY(-2px);
}

.level-sedang input:checked~.level-card i {
    color: #ffa000;
    filter: drop-shadow(0 0 6px rgba(255, 160, 0, 0.4));
}

.level-sedang input:checked~.level-card span {
    color: #ffa000;
}

/* Berat */
.level-berat .level-card i {
    color: rgba(255, 23, 68, 0.5);
}

.level-berat input:checked~.level-card {
    border-color: rgba(255, 23, 68, 0.6);
    background: rgba(255, 23, 68, 0.06);
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.15), inset 0 0 15px rgba(255, 23, 68, 0.03);
    transform: translateY(-2px);
}

.level-berat input:checked~.level-card i {
    color: #ff1744;
    filter: drop-shadow(0 0 6px rgba(255, 23, 68, 0.4));
}

.level-berat input:checked~.level-card span {
    color: #ff1744;
}

.level-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

/* Action Buttons */
.mistake-modal-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mistake-btn-cancel {
    padding: 12px 28px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mistake-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.mistake-btn-submit {
    position: relative;
    overflow: hidden;
    padding: 12px 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b71c1c 0%, #ff1744 100%);
    border: 1px solid rgba(255, 23, 68, 0.5);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3);
}

.mistake-btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.5), 0 0 20px rgba(255, 23, 68, 0.2);
}

.mistake-btn-submit:active {
    transform: translateY(0) scale(0.98);
}

.btn-submit-glow {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: submitGlowSweep 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes submitGlowSweep {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mistake-form-grid {
        grid-template-columns: 1fr;
    }

    .mistake-form-group[style*="span 2"] {
        grid-column: span 1 !important;
    }

    .mistake-level-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .level-card {
        padding: 12px 6px;
    }

    .level-card i {
        font-size: 18px;
    }

    .mistake-modal-actions {
        flex-direction: column;
    }

    .mistake-btn-cancel,
    .mistake-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ========== SUPER CANGGIH DESIGN SYSTEM (GENERAL) ========== */
.canggih-modal-content {
    background: linear-gradient(135deg, #10101a 0%, #08080e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 23, 68, 0.05) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

.canggih-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.canggih-modal-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--danger);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.canggih-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.canggih-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.canggih-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.canggih-label i {
    color: var(--danger);
    font-size: 12px;
}

.canggih-input {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

select.canggih-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236C6F80' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}

.canggih-input:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.15) !important;
    background: rgba(255, 23, 68, 0.03) !important;
}

.canggih-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.canggih-btn-submit {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3) !important;
    transition: all 0.3s !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.canggih-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5) !important;
}

.canggih-btn-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.canggih-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Visibility Control */
.auth-hidden {
    display: none !important;
}

/* ========== SUPER CANGGIH TABLE & BADGE SYSTEM ========== */
.canggih-table-row:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.2s ease-in-out;
}

.canggih-avatar {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.canggih-table-row:hover .canggih-avatar {
    transform: scale(1.1);
}

.canggih-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.canggih-badge-ringan {
    background: linear-gradient(135deg, #ffd600 0%, #ffab00 100%) !important;
    color: #000 !important;
}

.canggih-badge-sedang {
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%) !important;
    color: #fff !important;
}

.canggih-badge-berat {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: #fff !important;
}

.canggih-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.canggih-action-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PREMIUM MISTAKE TABLE & MODAL ========== */
.canggih-table-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.canggih-table-row:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    transform: scale(1.002) translateX(4px);
    box-shadow: inset 4px 0 0 var(--secondary);
}

.canggih-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.canggih-badge-ringan {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.3);
}

.canggih-badge-sedang {
    background: rgba(3, 169, 244, 0.1);
    color: #03a9f4;
    border-color: rgba(3, 169, 244, 0.3);
}

.canggih-badge-berat {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.canggih-avatar {
    position: relative;
    overflow: hidden;
}

.canggih-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine-effect-2 4s infinite;
}

@keyframes shine-effect-2 {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.canggih-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.canggih-action-icon:hover {
    transform: translateY(-2px) scale(1.1);
    filter: brightness(1.2);
}

/* REALTIME CLOCK SYSTEM (IZIN KELUAR) */
.clock-section {
    text-align: center;
    padding: 0 0 30px 0;
    margin-top: -10px;
}

.clock-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 6px;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.clock-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 52px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clock-digit {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 23, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    min-width: 90px;
    text-align: center;
    color: #FF1744;
    text-shadow: 0 0 15px rgba(255, 25, 68, 0.5);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 23, 68, 0.15);
    transition: var(--transition);
}

.clock-digit:hover {
    border-color: #FF1744;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 23, 68, 0.3);
}

.clock-separator {
    font-size: 36px;
    color: rgba(255, 23, 68, 0.6);
    animation: blinkSep 1s step-end infinite;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

@keyframes blinkSep {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.clock-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 15px;
    letter-spacing: 2px;
    font-weight: 500;
}

/* LIVING BACKGROUND SYSTEM */
.app-wrapper {
    position: relative;
    overflow: hidden;
    transition: background 1s ease-in-out;
}

.bg-image-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.12;
    filter: blur(8px) brightness(0.7);
    transition: opacity 1s, background-image 1s;
    pointer-events: none;
    animation: slowPan 120s infinite linear alternate;
}

@keyframes slowPan {
    from {
        transform: scale(1.1) rotate(0deg);
    }

    to {
        transform: scale(1.4) rotate(2deg);
    }
}

.bg-option {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.bg-option:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 23, 68, 0.6) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 23, 68, 0.1);
}

.bg-option.active {
    border-color: #FF1744 !important;
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.4);
}

.bg-option.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 8px;
    color: #FF1744;
    font-size: 14px;
    filter: drop-shadow(0 0 5px rgba(255, 23, 68, 0.5));
}