/* Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Tema Gelap (Default) */
    --bg-main: #0b0b0f;
    --bg-card: rgba(23, 23, 33, 0.75);
    --bg-card-hover: rgba(30, 30, 45, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.4);
    
    --bg-sidebar: rgba(18, 18, 26, 0.85);
    --bg-modal: #161622;
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-bubble-in: rgba(255, 255, 255, 0.06);
    --bg-bubble-out: #6366f1;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --warning: #f59e0b;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --sidebar-width: 260px;
    --chat-width: 320px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    --bg-my-task: rgba(255, 255, 255, 0.07);
    --border-my-task: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    /* Tema Terang */
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-active: rgba(99, 102, 241, 0.6);
    
    --bg-sidebar: rgba(255, 255, 255, 0.9);
    --bg-modal: #ffffff;
    --bg-input: rgba(0, 0, 0, 0.03);
    --bg-bubble-in: rgba(0, 0, 0, 0.05);
    --bg-bubble-out: #4f46e5;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    
    --bg-my-task: rgba(0, 0, 0, 0.05);
    --border-my-task: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    transition: opacity 0.3s ease;
}

body::before {
    top: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
}

body::after {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(236, 76, 153, 0.3) 0%, rgba(244, 63, 94, 0.3) 100%);
}

[data-theme="light"] body::before {
    opacity: 0.08;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}

[data-theme="light"] body::after {
    opacity: 0.08;
    background: radial-gradient(circle, rgba(236, 76, 153, 0.15) 0%, rgba(244, 63, 94, 0.15) 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Halaman Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    margin: 0 auto 10px auto;
}

.login-logo i {
    width: 28px;
    height: 28px;
}

.login-title h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a5b4fc, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-title p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.login-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Layout App */
.app-container {
    display: grid;
    grid-template-columns: 1fr;
    height: 100vh;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

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

.brand h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    white-space: nowrap;
}

.btn svg, .btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-sm svg, .btn-sm i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success);
    color: #fff;
}
.btn-success:hover {
    background-color: var(--success-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}
[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* User Selection (Role Switcher) */
.role-selector {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.role-selector:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

select option {
    background-color: var(--bg-modal);
    color: var(--text-main);
}

/* Attendance Display */
.attendance-tracker {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timer {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
}

/* Grid Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1.6fr 1fr; /* Left (Workers) is wider, Right (Mading) is narrower */
    }
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .card:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-left: 14px;
    color: var(--text-main);
}

.card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, #6366f1, #a855f7);
    border-radius: 2px;
}

/* Workers Active List */
.workers-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .workers-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .workers-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .workers-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.worker-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.worker-status-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .worker-status-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

/* WhatsApp-like subtle grey highlight style for logged-in user's own card */
.worker-status-card.user-own-card {
    background-color: rgba(245, 245, 247, 0.9) !important; /* Extremely soft, thin grey */
    border-top-color: rgba(0, 0, 0, 0.06) !important;
    border-right-color: rgba(0, 0, 0, 0.06) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .worker-status-card.user-own-card {
    background-color: rgba(34, 34, 48, 0.85) !important; /* Soft dark grey-blue highlight */
    border-top-color: rgba(255, 255, 255, 0.06) !important;
    border-right-color: rgba(255, 255, 255, 0.06) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}





/* Header area: Avatar + Name & Role */
.worker-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.worker-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
}

.worker-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.worker-avatar-wrapper .status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    transition: all 0.3s ease;
}

.worker-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.worker-name-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.worker-name-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.worker-badge-container {
    display: flex;
    gap: 4px;
    align-items: center;
}

.worker-role-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .worker-role-badge {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.worker-status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Status specific colors for badge and borders */
.worker-status-card.not-started {
    border-top: 3px solid var(--text-muted) !important;
}
.worker-status-card.active {
    border-top: 3px solid var(--success) !important;
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.03), var(--shadow-sm);
}
.worker-status-card.paused {
    border-top: 3px solid var(--warning) !important;
}
.worker-status-card.ended {
    border-top: 3px solid var(--danger) !important;
}

/* Progress bar inside card */
.worker-progress-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.worker-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.worker-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="light"] .worker-progress-track {
    background: rgba(0, 0, 0, 0.05);
}

.worker-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Meta list inside card */
.worker-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 2px;
}

.worker-meta-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.worker-meta-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.worker-meta-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

.worker-meta-value.time-code {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: -0.2px;
}

/* Direct Action Buttons on Card */
.worker-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.worker-card-actions:empty {
    display: none;
}

.btn-card-action {
    flex: 1;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
}

.btn-card-action:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-card-action.btn-chat-action {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.btn-card-action.btn-chat-action:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.inactive {
    background-color: var(--text-muted);
}

/* Sticky Notes (Mading) */
.sticky-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.sticky-note {
    position: relative;
    padding: 1.5px; /* Border tipis bercahaya */
    border-radius: 16px;
    width: 100%;
    min-height: 140px;
    display: flex;
    overflow: hidden;
    z-index: 1;
    transform: none !important; /* Hilangkan kemiringan */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.sticky-note:hover {
    transform: translateY(-5px) !important;
}

/* Bulatan Cahaya Berputar (Running Border Light) */
.sticky-note::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--border-glow-color) 15%,
        transparent 35%,
        transparent 65%,
        var(--border-glow-color) 80%,
        transparent 100%
    );
    animation: rotate-border var(--border-glow-speed, 4s) linear infinite;
    z-index: -2;
}

.sticky-note-inner {
    background: var(--card-bg-gradient);
    color: var(--text-color);
    border-radius: 14.5px;
    padding: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    backdrop-filter: blur(8px);
}

/* Animasi Putaran Tepian Kotak */
@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Tema Urgensi Sticky Note */
.sticky-note.yellow {
    --border-glow-color: #eab308;
    --border-glow-speed: 4s;
    --card-bg-gradient: linear-gradient(135deg, #fef08a, #fef9c3);
    --text-color: #713f12;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.15);
}
.sticky-note.yellow:hover {
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35);
}

.sticky-note.red {
    --border-glow-color: #f43f5e;
    --border-glow-speed: 2s; /* Putaran berjalan lebih cepat untuk urgensi tinggi */
    --card-bg-gradient: linear-gradient(135deg, #fecaca, #fee2e2);
    --text-color: #7f1d1d;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.2);
}
.sticky-note.red:hover {
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.45);
}

.sticky-note.green {
    --border-glow-color: #10b981;
    --border-glow-speed: 6s; /* Putaran tenang/lambat */
    --card-bg-gradient: linear-gradient(135deg, #bbf7d0, #dcfce7);
    --text-color: #14532d;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}
.sticky-note.green:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.sticky-note.blue {
    --border-glow-color: #3b82f6;
    --border-glow-speed: 5s;
    --card-bg-gradient: linear-gradient(135deg, #bfdbfe, #dbeafe);
    --text-color: #1e3a8a;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}
.sticky-note.blue:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.sticky-note.purple {
    --border-glow-color: #a855f7;
    --border-glow-speed: 5s;
    --card-bg-gradient: linear-gradient(135deg, #e9d5ff, #f3e8ff);
    --text-color: #581c87;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15);
}
.sticky-note.purple:hover {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.sticky-text {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    word-break: break-word;
}

.sticky-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Color Selector in Form */
.sticky-color-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.color-dot-opt {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.color-dot-opt:hover {
    transform: scale(1.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.color-dot-opt.active {
    transform: scale(1.15);
    border: 2px solid var(--text-main) !important;
    box-shadow: 0 0 0 2px var(--primary), 0 0 10px var(--primary);
}

.color-dot-opt-worker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.color-dot-opt-worker:hover {
    transform: scale(1.2);
}

.color-dot-opt-worker.active {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--primary);
    border: 2px solid var(--primary) !important;
}

.delete-note-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    border-radius: 4px;
}
.delete-note-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Mading Modern Form redesign */
.mading-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .mading-form-wrapper {
    background: rgba(0, 0, 0, 0.01);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mading-textarea-wrapper {
    position: relative;
    width: 100%;
}

.mading-textarea-wrapper textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    padding: 12px 14px 12px 38px;
    resize: none;
    min-height: 80px;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mading-textarea-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.mading-input-icon {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mading-input-icon svg, .mading-input-icon i {
    width: 16px;
    height: 16px;
}

/* Controls Grid */
.mading-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mading-control-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.label-icon {
    width: 14px;
    height: 14px;
}

/* Masa Aktif Expiry Selector */
.sticky-expiry-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mading-expiry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-expiry {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-expiry:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-main);
}

.mading-custom-expiry-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    border-radius: 8px;
    width: fit-content;
    transition: border-color 0.2s;
}

.mading-custom-expiry-wrapper:focus-within {
    border-color: var(--primary);
}

.mading-custom-expiry-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    width: 65px;
    padding: 4px 0;
}

/* Chrome, Safari, Edge, Opera number arrows remove */
.mading-custom-expiry-wrapper input::-webkit-outer-spin-button,
.mading-custom-expiry-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox number arrows remove */
.mading-custom-expiry-wrapper input[type=number] {
    -moz-appearance: textfield;
}

.expiry-suffix {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Submit Button */
.btn-mading-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border: none;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-mading-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.btn-mading-submit:active {
    transform: translateY(1px);
}

.btn-mading-submit svg, .btn-mading-submit i {
    width: 16px;
    height: 16px;
}

/* Empty State Modern redesign */
.mading-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    margin-top: 10px;
}

[data-theme="light"] .mading-empty {
    background: rgba(0, 0, 0, 0.005);
}

.mading-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .mading-empty-icon {
    background: rgba(0, 0, 0, 0.02);
}

.mading-empty:hover .mading-empty-icon {
    transform: scale(1.1) rotate(-10deg);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.mading-empty-icon svg, .mading-empty-icon i {
    width: 20px;
    height: 20px;
}

.mading-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.mading-empty-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 220px;
}

/* Kanban Board Layout */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    flex: 1;
    min-height: 400px;
    position: relative; /* Diperlukan untuk SVG overlay */
}

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

.kanban-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 250px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .kanban-column {
    background: rgba(0, 0, 0, 0.01);
}

.column-header {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease;
}

.column-badge {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

/* Custom Column Themes (Modern & Colorful) */
#col-todo {
    border-top: 4px solid #ca8a04 !important;
    background: rgba(202, 138, 4, 0.03);
}
#col-in_progress {
    border-top: 4px solid #b45309 !important;
    background: rgba(180, 83, 9, 0.03);
}
#col-done {
    border-top: 4px solid #334155 !important;
    background: rgba(51, 65, 85, 0.03);
}

#col-todo .column-header {
    color: #fbbf24;
}
#col-in_progress .column-header {
    color: #fdba74;
}
#col-done .column-header {
    color: #94a3b8;
}

[data-theme="light"] #col-todo .column-header { color: #a16207; }
[data-theme="light"] #col-in_progress .column-header { color: #9a3412; }
[data-theme="light"] #col-done .column-header { color: #1e293b; }

#col-todo .column-badge { background: rgba(202, 138, 4, 0.15); color: #ca8a04; }
#col-in_progress .column-badge { background: rgba(180, 83, 9, 0.15); color: #b45309; }
#col-done .column-badge { background: rgba(51, 65, 85, 0.15); color: #334155; }

.task-card.ghost-card {
    opacity: 0.45;
    border: 1.5px dashed var(--border-color) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}
[data-theme="light"] .task-card.ghost-card {
    background-color: rgba(0, 0, 0, 0.01) !important;
}

.column-cards-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 4px;
    min-height: 150px;
}

.column-cards-container.dragover {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed var(--primary);
    border-radius: 12px;
}

/* Kanban Cards */
.task-card {
    position: relative; /* Diperlukan untuk penanda absolute */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    cursor: grab;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.task-card.urgent-task {
    border-top: 3.5px solid #f43f5e !important;
    background-color: rgba(244, 63, 94, 0.03) !important;
}

[data-theme="light"] .task-card.urgent-task {
    background-color: rgba(244, 63, 94, 0.02) !important;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
}

.urgent-bell {
    animation: bell-shake 1.5s infinite;
    color: #f43f5e;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.task-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
}

.task-card.my-own-task .task-card-title {
    padding-right: 85px;
}

.task-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card.done-task-fire {
    border: 1px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #ff1a00, #ff5f00, #ffb300, #ff5f00, #ff1a00) border-box !important;
    background-size: 100% 100%, 300% 300% !important;
    animation: fire-border-flow 3s ease infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 68, 0, 0.4), inset 0 0 15px rgba(255, 68, 0, 0.15) !important;
}

.task-card.done-task-fire > *:not(.campfire-background):not(.my-task-badge):not(.delete-task-btn) {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.task-card.done-task-fire .task-assignee, 
.task-card.done-task-fire .task-comments-count {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.task-card.done-task-fire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 110%, rgba(255, 51, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 85% 120%, rgba(255, 179, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 130%, rgba(255, 95, 0, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(4px);
    animation: fire-ambient-glow 2s infinite alternate ease-in-out;
}

/* Background campfire fire container */
.task-card.done-task-fire .campfire-background {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0.65; /* Extremely bright and visible! */
    mix-blend-mode: screen;
}

/* Individual flames */
.task-card.done-task-fire .campfire-background .flame {
    position: absolute;
    bottom: -15px;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 50% 80%, #ffeb3b 0%, #ff9800 45%, #f44336 80%, transparent 100%);
    border-radius: 50% 50% 20% 20%;
    transform-origin: center bottom;
    filter: blur(1.5px);
    animation: rise-and-flicker 1.4s infinite ease-in-out;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(1) {
    left: 5%;
    width: 25px;
    height: 45px;
    animation-duration: 1.1s;
    animation-delay: 0.1s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(2) {
    left: 18%;
    width: 35px;
    height: 65px;
    animation-duration: 1.4s;
    animation-delay: 0.3s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(3) {
    left: 32%;
    width: 45px;
    height: 85px;
    animation-duration: 1.2s;
    animation-delay: 0.05s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(4) {
    left: 45%;
    width: 50px;
    height: 95px;
    animation-duration: 1.5s;
    animation-delay: 0.2s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(5) {
    left: 58%;
    width: 45px;
    height: 90px;
    animation-duration: 1.3s;
    animation-delay: 0.1s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(6) {
    left: 72%;
    width: 35px;
    height: 70px;
    animation-duration: 1.6s;
    animation-delay: 0.4s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(7) {
    left: 84%;
    width: 28px;
    height: 50px;
    animation-duration: 1.2s;
    animation-delay: 0.15s;
}

.task-card.done-task-fire .campfire-background .flame:nth-child(8) {
    left: 92%;
    width: 20px;
    height: 35px;
    animation-duration: 1.0s;
    animation-delay: 0.3s;
}

/* Rising Embers/Sparks */
.task-card.done-task-fire .campfire-background .ember {
    position: absolute;
    bottom: 5px;
    width: 3px;
    height: 3px;
    background-color: #ffeb3b;
    border-radius: 50%;
    filter: blur(0.3px);
    animation: ember-rise 2.0s infinite ease-out;
}

.task-card.done-task-fire .campfire-background .ember:nth-child(9) { left: 15%; animation-duration: 1.6s; animation-delay: 0.2s; }
.task-card.done-task-fire .campfire-background .ember:nth-child(10) { left: 38%; animation-duration: 2.2s; animation-delay: 0.5s; }
.task-card.done-task-fire .campfire-background .ember:nth-child(11) { left: 52%; animation-duration: 1.9s; animation-delay: 0s; }
.task-card.done-task-fire .campfire-background .ember:nth-child(12) { left: 70%; animation-duration: 2.3s; animation-delay: 0.4s; }
.task-card.done-task-fire .campfire-background .ember:nth-child(13) { left: 88%; animation-duration: 1.7s; animation-delay: 0.1s; }

@keyframes rise-and-flicker {
    0% {
        transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        transform: translateY(-45px) scaleX(1.1) scaleY(1.3) rotate(5deg);
        opacity: 0.95;
    }
    80% {
        opacity: 0.65;
    }
    100% {
        transform: translateY(-100px) scaleX(0.4) scaleY(0.4) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes ember-rise {
    0% {
        transform: translateY(0) translateX(0) scale(1.2);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-130px) translateX(25px) scale(0.4);
        opacity: 0;
    }
}

@keyframes fire-border-flow {
    0% {
        background-position: 0% 50%, 0% 50%;
    }
    50% {
        background-position: 0% 50%, 100% 50%;
    }
    100% {
        background-position: 0% 50%, 0% 50%;
    }
}

@keyframes fire-ambient-glow {
    0% {
        opacity: 0.6;
        transform: translateY(2px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(-2px) scale(1.03);
    }
}

.task-card:active {
    cursor: grabbing;
}

.task-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.task-card.my-own-task {
    background-color: var(--bg-my-task) !important;
    border-color: var(--border-my-task) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s, background-color 0.3s;
}

.task-card.my-own-task:hover {
    transform: translateY(-5px) scale(1.02);
}

.task-card.dragging {
    opacity: 0.5;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-main);
    font-weight: 500;
}

.task-comments-count {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Chat Sidebar Right */
.chat-sidebar {
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    transition: background-color 0.3s ease;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.chat-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.chat-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .chat-tab.active {
    background: rgba(0, 0, 0, 0.02);
}

.chat-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-user-item:hover {
    background: var(--bg-input);
}

.chat-user-item.active {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-active);
}

.avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.avatar {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: white;
}

.avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    transition: border-color 0.3s ease;
}

.avatar-status.active {
    background-color: var(--success);
}
.avatar-status.inactive {
    background-color: var(--text-muted);
}

.chat-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-user-name {
    font-size: 13px;
    font-weight: 600;
}

.chat-user-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Chat Room Panel */
.chat-room {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-room-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.message-bubble.incoming {
    align-self: flex-start;
    background: var(--bg-bubble-in);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message-bubble.outgoing {
    align-self: flex-end;
    background: var(--bg-bubble-out);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}
.message-bubble.outgoing .message-meta {
    color: rgba(255, 255, 255, 0.7);
}

.message-sender-name {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-muted);
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-bar input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
}

.chat-input-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group textarea, .form-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Task Detail specific styles */
.task-detail-modal {
    max-width: 700px;
}

.task-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    background: var(--bg-input);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.task-desc-area {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--bg-input);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-break: break-word;
}

.task-chat-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.task-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-bubble {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.comment-text {
    line-height: 1.4;
    word-break: break-word;
}

/* Empty placeholder */
.empty-placeholder {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 24px;
}

/* Floating Chat Heads */
.floating-chat-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column-reverse; /* Tumpukan ke atas */
    gap: 12px;
    z-index: 1010;
}

.chat-bubble-head {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    background: var(--primary);
    color: white;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    user-select: none;
    border: 2px solid var(--border-color);
}

.chat-bubble-head:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.chat-bubble-head.active {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.chat-bubble-head .avatar {
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-weight: 600;
}

.chat-bubble-head .unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid var(--bg-main);
    box-shadow: 0 2px 6px rgba(244, 63, 148, 0.4);
}

.chat-bubble-head .avatar-status {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
}

.chat-bubble-head .close-head-btn {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    font-size: 11px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 5;
    line-height: 1;
}

.chat-bubble-head:hover .close-head-btn {
    display: flex;
}

/* Docked Chat Container */
.docked-chat-container {
    position: fixed;
    right: 90px; /* Di sebelah kiri tumpukan gelembung chat */
    bottom: 0;
    display: flex;
    flex-direction: row-reverse; /* Docked dari kanan ke kiri */
    align-items: flex-end;
    gap: 16px;
    z-index: 1000;
    pointer-events: none; /* Klik bisa tembus ke bawah jika di luar jendela chat */
}

.chat-window {
    width: 320px;
    height: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto; /* Aktifkan klik di dalam jendela chat */
    transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.2s;
    animation: slide-up-chat 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slide-up-chat {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-window.minimized {
    height: 45px;
}

.chat-window-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

[data-theme="light"] .chat-window-header {
    background: rgba(0, 0, 0, 0.02);
}

.chat-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.chat-window-title .avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.chat-window-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-window-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.chat-window-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

[data-theme="light"] .chat-window-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Contact List Popover */
.contact-list-popover {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 280px;
    max-height: 380px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fade-in-popover 0.2s ease;
    z-index: 1020;
}

@keyframes fade-in-popover {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-list-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-modal);
    border: 1px solid var(--success);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateY(0);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Active Expiry Selection Button */
.sticky-expiry-selector button.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.connector-line {
    stroke-dasharray: 8, 4;
    animation: dash-flow 1.5s linear infinite;
    stroke-linecap: round;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -24;
    }
}

.my-task-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 5;
}

[data-theme="light"] .my-task-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* ==========================================================================
   Simulator Komputer Karyawan (Virtual Workstations) - iMac Style
   ========================================================================== */
.workstation-board-card {
    transition: all 0.3s ease;
}

.workstations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    padding-top: 10px;
}

/* Desain iMac Monitor Virtual */
.imac-monitor {
    --imac-chin-default: #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 2px;
}

[data-theme="dark"] .imac-monitor {
    --imac-chin-default: #334155;
}

.imac-body {
    width: 100%;
    background: #090d16; /* sleek front black glass bezel look */
    border-radius: 16px;
    padding: 6px 6px 0 6px; /* 6px bezel on top, left, right, none on bottom */
    box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 3px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

.imac-monitor:hover .imac-body {
    box-shadow: 0 15px 35px rgba(0,0,0,0.45), 0 5px 15px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.15);
}

.imac-screen-container {
    width: 100%;
    height: 215px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    background: #0b0f17;
}

.monitor-screen {
    width: 100%;
    height: 100%;
    background: #0b0f17;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.imac-chin {
    width: calc(100% + 12px); /* extend chin to cover the 6px body padding on left/right */
    margin-left: -6px;
    margin-right: -6px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
    transition: background-color 0.3s ease;
    /* Brushed metallic overlay */
    background-image: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(0,0,0,0.15) 100%);
    background-blend-mode: overlay;
}

.imac-power-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

/* Power Dot pulses based on online/offline heartbeat state */
.imac-power-dot.dot-online {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: status-pulse-anim 1.5s infinite ease-in-out;
    opacity: 1;
}
.imac-power-dot.dot-offline {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
    animation: status-pulse-anim 1.5s infinite ease-in-out;
    opacity: 1;
}

.imac-stand {
    width: 36px;
    height: 44px;
    background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

[data-theme="dark"] .imac-stand {
    background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
}

.imac-stand-foot {
    width: 72px;
    height: 5px;
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #94a3b8 100%);
    border-radius: 2px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    margin-top: -1px; /* overlap slightly to merge */
    z-index: 2;
    transition: all 0.3s ease;
}

[data-theme="dark"] .imac-stand-foot {
    background: linear-gradient(90deg, #1e293b 0%, #475569 50%, #1e293b 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.45);
}



.monitor-controls {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.btn-update-monitor {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border: 1px solid #00d2ff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.2s ease;
}


.btn-update-monitor:hover {
    background: #00d2ff;
    color: #0b0f17;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* iMac Keyboard Controller Button */
.imac-keyboard-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    perspective: 200px;
    z-index: 10;
    width: 100%;
}

.imac-keyboard-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #00d2ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #090d16;
    border: 1.5px solid rgba(0, 210, 255, 0.6);
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 210, 255, 0.35);
    margin-bottom: 5px;
    animation: floating-text 2s infinite ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: all 0.25s ease;
}

.kbd-prompt {
    color: #38bdf8;
    margin-right: 2px;
}

.kbd-cursor {
    color: #00d2ff;
    animation: kbd-cursor-blink 1s infinite steps(2, start);
}

@keyframes kbd-cursor-blink {
    to { visibility: hidden; }
}

@keyframes floating-text {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.imac-keyboard {
    width: 100px;
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #94a3b8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: rotateX(25deg);
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2.5px;
}

[data-theme="dark"] .imac-keyboard {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border-color: #475569;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    width: 100%;
}

.key {
    width: 7px;
    height: 6px;
    background: #ffffff;
    border-radius: 1px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.25);
    display: inline-block;
    transition: background-color 0.2s ease;
}

[data-theme="dark"] .key {
    background: #f1f5f9;
    box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.key.spacebar {
    width: 34px;
}

.key.width-2 {
    width: 12px;
}

/* Interaktivitas Hover Keyboard */
.imac-keyboard-wrapper:hover .imac-keyboard {
    transform: rotateX(20deg) translateY(1px);
    background: linear-gradient(180deg, #e2e8f0 0%, #00d2ff 100%);
    border-color: #00d2ff;
    box-shadow: 0 8px 16px rgba(0, 210, 255, 0.4), 0 3px 6px rgba(0,0,0,0.3);
}

[data-theme="dark"] .imac-keyboard-wrapper:hover .imac-keyboard {
    background: linear-gradient(180deg, #1e293b 0%, #00d2ff 100%);
    border-color: #00d2ff;
    box-shadow: 0 8px 16px rgba(0, 210, 255, 0.5), 0 3px 6px rgba(0,0,0,0.5);
}

.imac-keyboard-wrapper:hover .key {
    background: #e2e8f0;
}

.imac-keyboard-wrapper:hover .key.spacebar {
    background: #00d2ff;
    box-shadow: 0 0 4px #00d2ff;
}

.imac-keyboard-wrapper:hover .imac-keyboard-label {
    background: #00d2ff;
    color: #090d16;
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.85), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.imac-keyboard-wrapper:hover .kbd-prompt,
.imac-keyboard-wrapper:hover .kbd-cursor {
    color: #090d16;
}

/* Delete Task Button styles */
.delete-task-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 10;
}

.task-card:hover .delete-task-btn {
    opacity: 1;
}

.delete-task-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.delete-task-btn svg {
    width: 14px;
    height: 14px;
}


/* CRT Scanlines & Glow Overlay */
.crt-scanline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

.crt-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9;
    pointer-events: none;
}

/* Screen Sections */
.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(0,0,0,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 10px;
    color: #8892b0;
    font-family: 'Courier New', monospace;
    z-index: 2;
}

.user-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.screen-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.screen-body {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.screen-footer {
    background: rgba(0,0,0,0.55);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 4px 8px;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    color: #8892b0;
    z-index: 2;
}

.screen-task-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Indicator (Inside Screen) */
.status-indicator {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-status-text {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

/* Pulse Animations for Indicators */
.status-pulse-purple, .status-pulse-yellow, .status-pulse-blue {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: status-pulse-anim 1.5s infinite ease-in-out;
}
.status-pulse-purple { background: #d946ef; box-shadow: 0 0 5px #d946ef; }
.status-pulse-yellow { background: #ffb300; box-shadow: 0 0 5px #ffb300; }
.status-pulse-blue { background: #00d2ff; box-shadow: 0 0 5px #00d2ff; }

@keyframes status-pulse-anim {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Status Colors & Screen Glow Styles */
/* 1. WORKING - NEON BLUE */
.imac-monitor.working .monitor-screen {
    box-shadow: inset 0 0 15px rgba(0, 210, 255, 0.25);
    border-color: rgba(0, 210, 255, 0.35);
}
.imac-monitor.working .crt-glow {
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.08), transparent 85%);
    animation: monitor-flicker 0.15s infinite alternate;
}
.imac-monitor.working .working-text { color: #00d2ff; }
.imac-monitor.working .custom-status-text { color: #88eeff; }

/* 2. BREAK - NEON ORANGE/YELLOW */
.imac-monitor.break .monitor-screen {
    box-shadow: inset 0 0 15px rgba(255, 179, 0, 0.25);
    border-color: rgba(255, 179, 0, 0.35);
}
.imac-monitor.break .crt-glow {
    background: radial-gradient(circle at 50% 50%, rgba(255, 179, 0, 0.08), transparent 85%);
    animation: monitor-flicker 0.2s infinite alternate;
}
.imac-monitor.break .break-text { color: #ffb300; }
.imac-monitor.break .custom-status-text { color: #ffe082; }

/* 3. STANDBY - NEON PURPLE */
.imac-monitor.standby .monitor-screen {
    box-shadow: inset 0 0 15px rgba(217, 70, 239, 0.25);
    border-color: rgba(217, 70, 239, 0.35);
}
.imac-monitor.standby .crt-glow {
    background: radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.08), transparent 85%);
    animation: monitor-flicker 0.18s infinite alternate;
}
.imac-monitor.standby .standby-text { color: #d946ef; }
.imac-monitor.standby .custom-status-text { color: #f5d0fe; }

/* 4. OFFLINE - DIM GREY */
.imac-monitor.offline .monitor-screen {
    opacity: 0.65;
    border-color: #2b303b;
    box-shadow: none;
}
.imac-monitor.offline .crt-glow {
    display: none;
}
.imac-monitor.offline .offline-text { color: #5b657a; }
.imac-monitor.offline .screen-body { color: #424957; }

/* Dynamic Animations inside Screens */
/* 1. Working: Scrolling Code in Neon Blue */
.code-scroller {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    padding-top: 6px;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    line-height: 1.2;
    color: rgba(0, 210, 255, 0.65);
    animation: code-scroll-anim 10s linear infinite;
}

.code-lines span {
    white-space: nowrap;
    overflow: hidden;
}

@keyframes code-scroll-anim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-45px); }
}

/* 1b. Working: Video Editor Timeline & Waveforms */
.video-editor-animation {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    padding-top: 6px;
    overflow: hidden;
}

.video-preview {
    height: 38px;
    background: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-preview-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-moving-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: preview-scan 3s linear infinite;
}

.video-film-icon {
    font-size: 16px;
    z-index: 2;
    animation: video-icon-pulse 1.5s ease-in-out infinite alternate;
}

.video-timeline {
    height: 32px;
    background: #0c0f17;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
}

.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #ef4444;
    left: 0;
    z-index: 10;
    box-shadow: 0 0 4px #ef4444;
    animation: playhead-move 3s linear infinite;
}

.video-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2px;
}

.video-clip {
    height: 8px;
    border-radius: 2px;
}

.clip-green {
    width: 45px;
    background: #10b981;
    opacity: 0.8;
}

.clip-blue {
    width: 30px;
    background: #3b82f6;
    opacity: 0.8;
    margin-left: 6px;
}

.audio-wave {
    display: flex;
    gap: 1.5px;
    align-items: center;
    height: 80%;
    width: 100%;
    padding-left: 2px;
}

.audio-wave span {
    width: 2px;
    height: 60%;
    background: #60a5fa;
    border-radius: 1px;
    animation: audio-dance 0.8s ease-in-out infinite alternate;
}

.audio-wave span:nth-child(2n) { animation-delay: 0.1s; height: 30%; background: #3b82f6; }
.audio-wave span:nth-child(3n) { animation-delay: 0.3s; height: 80%; background: #93c5fd; }
.audio-wave span:nth-child(4n) { animation-delay: 0.2s; height: 45%; }
.audio-wave span:nth-child(5n) { animation-delay: 0.4s; height: 70%; }

@keyframes preview-scan {
    0% { left: -5%; }
    100% { left: 105%; }
}

@keyframes video-icon-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes playhead-move {
    0% { left: 0%; }
    100% { left: 100%; }
}

@keyframes audio-dance {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.1); }
}

/* 1c. Working: Posting Team Feed Grid & Progress */
.posting-animation {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    padding-top: 6px;
    overflow: hidden;
}

.feed-grid {
    display: flex;
    gap: 5px;
    justify-content: center;
    height: 38px;
}

.feed-card {
    width: 38px;
    background: #000;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
    position: relative;
}

.feed-card.active-card {
    border-color: #f43f5e;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.4);
    animation: active-feed-glow 1.5s ease-in-out infinite alternate;
}

.card-image {
    font-size: 14px;
}

.card-likes {
    font-size: 6px;
    color: var(--text-muted);
    font-weight: bold;
}

.schedule-status {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.platform-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1px;
}

.platform-icon {
    font-size: 11px;
    opacity: 0.4;
    transform: scale(0.9);
}

.platform-icon.active-icon {
    opacity: 1;
    transform: scale(1);
    animation: platform-bounce 1s ease-in-out infinite alternate;
}

.platform-icon:nth-child(2) { animation-delay: 0.2s; }
.platform-icon:nth-child(3) { animation-delay: 0.4s; }

.upload-progress-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(to right, #ec4899, #f97316);
    animation: upload-fill-anim 3.5s ease-in-out infinite;
}

.upload-percent {
    font-size: 7px;
    color: #fff;
    font-weight: 800;
    z-index: 2;
    text-shadow: 0 1px 2px #000;
    position: relative;
    animation: text-pulse 1s infinite alternate;
}

@keyframes active-feed-glow {
    0% { transform: scale(0.95); border-color: rgba(244, 63, 94, 0.4); }
    100% { transform: scale(1.03); border-color: rgba(244, 63, 94, 1); }
}

@keyframes platform-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

@keyframes upload-fill-anim {
    0% { width: 0%; }
    70% { width: 85%; }
    85% { width: 100%; }
    100% { width: 100%; opacity: 0; }
}

@keyframes text-pulse {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

/* 2. Break: Steam & Coffee Float */
.coffee-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-top: 4px;
}

.coffee-cup {
    font-size: 28px;
    animation: coffee-float 2.5s ease-in-out infinite;
}

@keyframes coffee-float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.steam-container {
    display: flex;
    gap: 4px;
    height: 10px;
    margin-bottom: 2px;
}

.steam-line {
    width: 2px;
    height: 100%;
    background: rgba(255, 179, 0, 0.35);
    border-radius: 1px;
    animation: steam-rise-anim 1.5s infinite ease-in-out;
}

.steam-line:nth-child(1) { animation-delay: 0.1s; }
.steam-line:nth-child(2) { animation-delay: 0.4s; }
.steam-line:nth-child(3) { animation-delay: 0.2s; }

@keyframes steam-rise-anim {
    0% { transform: translateY(2px) scaleY(0.4); opacity: 0; }
    50% { transform: translateY(-2px) scaleY(1); opacity: 0.6; }
    100% { transform: translateY(-4px) scaleY(0.4); opacity: 0; }
}

/* 3. Standby: Digital Clock */
.standby-clock {
    font-size: 24px;
    font-weight: 700;
    color: #d946ef;
    text-align: center;
    margin-top: 14px;
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
    letter-spacing: 0.8px;
}

/* 4. Offline: Bounce Screensaver */
.screensaver-area {
    flex: 1;
    position: relative;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bouncing-text {
    font-size: 11px;
    font-weight: bold;
    color: #3b4252;
    position: absolute;
    animation: screensaver-bounce-anim 12s linear infinite alternate;
}

@keyframes screensaver-bounce-anim {
    0% { left: 0%; top: 0%; }
    30% { left: 55%; top: 25%; }
    60% { left: 10%; top: 55%; }
    85% { left: 50%; top: 10%; }
    100% { left: 5%; top: 50%; }
}

@keyframes monitor-flicker {
    0% { opacity: 0.96; }
    100% { opacity: 1; }
}

/* ==========================================================================
   Cyberpunk Terminal Modal (Kendalikan Monitor) - FUN BLUE THEME
   ========================================================================== */
#modal-control-monitor .modal-content {
    background: #090d16 !important;
    border: 2px solid #00d2ff !important;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.25) !important;
    font-family: 'Courier New', Courier, monospace !important;
}

#modal-control-monitor .modal-header h3 {
    color: #00d2ff !important;
    font-family: 'Courier New', Courier, monospace !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

#modal-control-monitor .modal-close {
    color: #00d2ff !important;
}

#modal-control-monitor label {
    color: #00d2ff !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

#modal-control-monitor input {
    background: #0f1624 !important;
    border: 1px solid #00d2ff !important;
    color: #00d2ff !important;
    border-radius: 4px !important;
    font-family: 'Courier New', Courier, monospace !important;
    box-shadow: inset 0 0 5px rgba(0, 210, 255, 0.1) !important;
    width: 100%;
    padding: 8px 12px;
}

#modal-control-monitor input:focus {
    outline: none !important;
    border-color: #00d2ff !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4), inset 0 0 5px rgba(0, 210, 255, 0.2) !important;
}

#modal-control-monitor input::placeholder {
    color: rgba(0, 210, 255, 0.3) !important;
}

#modal-control-monitor .btn-ghost {
    border: 1px solid #00d2ff !important;
    color: #00d2ff !important;
    font-family: 'Courier New', Courier, monospace !important;
    background: transparent !important;
}

#modal-control-monitor .btn-ghost:hover {
    background: rgba(0, 210, 255, 0.1) !important;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2) !important;
}

#modal-control-monitor .btn-primary {
    background: #00d2ff !important;
    color: #090d16 !important;
    border: 1px solid #00d2ff !important;
    font-weight: 700 !important;
    font-family: 'Courier New', Courier, monospace !important;
    transition: all 0.2s ease !important;
}

#modal-control-monitor .btn-primary:hover {
    background: #00aacc !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5) !important;
}

/* Password Input and Toggle Styles */
.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 42px !important;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
    outline: none;
}

.toggle-password-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .toggle-password-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.toggle-password-btn svg, .toggle-password-btn i {
    width: 16px;
    height: 16px;
}

/* Reset margin bottom form group di login form untuk keseimbangan jarak */
.login-form .form-group {
    margin-bottom: 0;
}

/* Admin Animation Choice Buttons */
.btn-anim-choice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}
.btn-anim-choice:hover {
    border-color: #00d2ff;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.05);
}
.btn-anim-choice.active {
    background: #00d2ff !important;
    color: #090d16 !important;
    border-color: #00d2ff !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5) !important;
}

/* 1. Live Dashboard Animation Styles */
.admin-dashboard-anim {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 8px 6px;
    box-sizing: border-box;
    justify-content: space-between;
    font-family: monospace;
    font-size: 8px;
    overflow: hidden;
}
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.dash-node {
    padding: 1.5px 0;
    text-align: center;
    border-radius: 2px;
    font-weight: bold;
    color: #ffffff;
    font-size: 7px;
}
.dash-node.online { background: #10b981; }
.dash-node.standby { background: #d946ef; }
.dash-node.offline { background: #4b5563; }
.dash-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 2px;
    margin: 4px 0;
}
.dash-bar {
    width: 10px;
    background: #00d2ff;
    animation: dash-bar-pulse 1.2s infinite alternate ease-in-out;
    border-radius: 1px 1px 0 0;
}
.dash-bar:nth-child(2) { animation-delay: 0.25s; background: #38bdf8; }
.dash-bar:nth-child(3) { animation-delay: 0.5s; background: #60a5fa; }
.dash-bar:nth-child(4) { animation-delay: 0.75s; background: #818cf8; }
@keyframes dash-bar-pulse {
    0% { height: 15%; }
    100% { height: var(--height); }
}
.dash-text {
    color: #88eeff;
    font-size: 7px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 2. Radar Scanner Animation Styles */
.admin-radar-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.radar-circle {
    width: 110px;
    height: 110px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0,210,255,0.03) 0%, transparent 75%);
}
.radar-circle::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(0, 210, 255, 0.12);
}
.radar-circle::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(0, 210, 255, 0.12);
}
.radar-line {
    position: absolute;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, rgba(0, 210, 255, 0.35) 0%, transparent 100%);
    top: 0; left: 50%;
    transform-origin: bottom left;
    animation: radar-sweep 3.5s infinite linear;
}
@keyframes radar-sweep {
    to { transform: rotate(360deg); }
}
.radar-ping {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: radar-ping-pulse 1.8s infinite ease-in-out;
}
.radar-ping.p1 { top: 30px; left: 20px; animation-delay: 0.4s; }
.radar-ping.p2 { top: 70px; left: 85px; animation-delay: 1.1s; }
.radar-ping.p3 { top: 25px; left: 75px; animation-delay: 1.6s; background: #d946ef; box-shadow: 0 0 6px #d946ef; }
@keyframes radar-ping-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
.radar-scan-text {
    font-family: monospace;
    font-size: 7px;
    color: #00d2ff;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* 3. Log Terminal Animation Styles */
.admin-terminal-anim {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 8px 6px;
    box-sizing: border-box;
    background: #05070a;
    overflow: hidden;
}
.terminal-log-lines {
    display: flex;
    flex-direction: column;
    gap: 4.5px;
    font-family: monospace;
    font-size: 7.5px;
    color: #10b981;
    text-align: left;
    height: 100%;
}
.terminal-log-lines span {
    display: block;
    white-space: nowrap;
    animation: log-slide-in 0.25s ease-out forwards;
    opacity: 0.95;
}
.terminal-log-lines span:nth-child(1) { color: #00d2ff; }
.terminal-log-lines span:nth-child(5) { color: #f59e0b; }
.terminal-log-lines span.term-cursor {
    color: #ffffff;
}

/* 4. Pipeline Flow Animation Styles */
.admin-pipeline-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}
.pipeline-track {
    width: 110px;
    height: 60px;
    border: 1.5px dashed rgba(0, 210, 255, 0.25);
    border-radius: 8px;
    position: relative;
    margin-bottom: 6px;
    background: rgba(0,210,255,0.02);
}
.pipeline-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00d2ff;
}
.pipeline-node.node-a {
    animation: pipe-flow-1 4.5s infinite linear;
}
.pipeline-node.node-b {
    animation: pipe-flow-2 4.5s infinite linear;
    animation-delay: 1.8s;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.pipeline-node.node-c {
    animation: pipe-flow-1 4.5s infinite linear;
    animation-delay: 3s;
}
.pipeline-node.node-d {
    animation: pipe-flow-2 4.5s infinite linear;
    animation-delay: 0.6s;
    background: #d946ef;
    box-shadow: 0 0 6px #d946ef;
}
@keyframes pipe-flow-1 {
    0% { top: -4px; left: 0%; }
    25% { top: -4px; left: 100%; transform: translate(-6px, 0); }
    50% { top: 56px; left: 100%; transform: translate(-6px, -6px); }
    75% { top: 56px; left: 0%; }
    100% { top: -4px; left: 0%; }
}
@keyframes pipe-flow-2 {
    0% { top: 56px; left: 100%; transform: translate(-6px, -6px); }
    25% { top: 56px; left: 0%; }
    50% { top: -4px; left: 0%; }
    75% { top: -4px; left: 100%; transform: translate(-6px, 0); }
    100% { top: 56px; left: 100%; transform: translate(-6px, -6px); }
}
.pipeline-label {
    font-family: monospace;
    font-size: 7px;
    color: #88eeff;
    letter-spacing: 0.5px;
}

/* 5. Security Shield Animation Styles */
.admin-security-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.shield-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shield-hexagon {
    width: 60px;
    height: 52px;
    background: rgba(0, 210, 255, 0.05);
    border: 2px solid rgba(0, 210, 255, 0.5);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: shield-rotate 8s infinite linear;
}
@keyframes shield-rotate {
    to { transform: rotate(360deg); }
}
.shield-glow {
    position: absolute;
    width: 50px;
    height: 43px;
    background: rgba(0, 210, 255, 0.15);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    animation: shield-pulse 2s infinite alternate ease-in-out;
}
@keyframes shield-pulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}
.security-status {
    font-family: monospace;
    font-size: 7px;
    color: #38bdf8;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* 6. Work Velocity Animation Styles */
.admin-velocity-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.velocity-gauge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid #00d2ff;
    border-right: 4px solid #38bdf8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
    animation: gauge-spin 5s infinite linear;
}
@keyframes gauge-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.gauge-arrow {
    width: 2px;
    height: 30px;
    background: #ef4444;
    position: absolute;
    bottom: 50%;
    transform-origin: bottom center;
    animation: arrow-wobble 0.8s infinite alternate ease-in-out;
    box-shadow: 0 0 4px #ef4444;
}
@keyframes arrow-wobble {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(75deg); }
}
.velocity-label {
    font-family: monospace;
    font-size: 7px;
    color: #88eeff;
    margin-top: 6px;
}

/* 7. AI Core Animation Styles */
.admin-ai-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}
.ai-sphere {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-orbit {
    position: absolute;
    border: 1px dashed rgba(0, 210, 255, 0.3);
    border-radius: 50%;
}
.ai-orbit.o1 {
    width: 60px;
    height: 30px;
    animation: orbit-rotate-1 4s infinite linear;
}
.ai-orbit.o2 {
    width: 30px;
    height: 60px;
    animation: orbit-rotate-2 4s infinite linear;
}
@keyframes orbit-rotate-1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes orbit-rotate-2 {
    0% { transform: rotate(90deg); }
    100% { transform: rotate(450deg); }
}
.ai-core-center {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #00d2ff 0%, #3b82f6 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px #00d2ff, 0 0 20px #3b82f6;
    animation: core-pulsate 1.5s infinite alternate ease-in-out;
}
@keyframes core-pulsate {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}
.ai-status {
    font-family: monospace;
    font-size: 7px;
    color: #a7f3d0;
    margin-top: 6px;
}

/* 8. Work Heatmap Animation Styles */
.admin-heatmap-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 15px);
    grid-template-rows: repeat(3, 15px);
    gap: 3px;
    margin-bottom: 8px;
}
.heat-cell {
    border-radius: 2px;
    animation: heat-shimmer 2s infinite alternate ease-in-out;
}
.heat-cell.h-low { background: #3b82f6; animation-delay: 0.2s; }
.heat-cell.h-mid { background: #f59e0b; animation-delay: 0.6s; }
.heat-cell.h-high { background: #ef4444; animation-delay: 1.1s; }
@keyframes heat-shimmer {
    0% { opacity: 0.4; filter: brightness(0.8); }
    100% { opacity: 1; filter: brightness(1.2); }
}
.heatmap-label {
    font-family: monospace;
    font-size: 7px;
    color: #94a3b8;
}

/* 9. Coffee Brew Animation Styles */
.admin-coffee-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.coffee-machine {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coffee-icon {
    font-size: 26px;
    position: relative;
    z-index: 2;
    margin-top: 10px;
}
.drip-drop {
    position: absolute;
    width: 2px;
    height: 8px;
    background: #78350f;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    animation: drip-fall 1.5s infinite ease-in;
}
@keyframes drip-fall {
    0% { top: 25px; opacity: 1; height: 3px; }
    30% { height: 8px; }
    80% { top: 46px; opacity: 1; }
    100% { top: 46px; opacity: 0; }
}
.cup-fill {
    position: absolute;
    width: 18px;
    height: 12px;
    background: rgba(120, 53, 15, 0.85);
    bottom: 23px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
    animation: cup-filling 6s infinite ease-out;
}
@keyframes cup-filling {
    0% { height: 0; }
    80%, 100% { height: 12px; }
}
.coffee-label {
    font-family: monospace;
    font-size: 7px;
    color: #ffe4e6;
    margin-top: 4px;
}

/* 10. Cloud Sync Animation Styles */
.admin-cloud-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.cloud-sync-container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cloud-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.4));
    animation: cloud-float 2s infinite alternate ease-in-out;
}
@keyframes cloud-float {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}
.sync-arrows {
    font-size: 14px;
    position: absolute;
    top: 38px;
    animation: arrow-spin 2s infinite linear;
}
@keyframes arrow-spin {
    to { transform: rotate(-360deg); }
}
.cloud-label {
    font-family: monospace;
    font-size: 7px;
    color: #e2e8f0;
    margin-top: 4px;
}

/* ==========================================================================
   Profile Avatar & Upload Preview Custom Styles
   ========================================================================== */
.worker-avatar img,
.avatar img,
.avatar-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#btn-delete-avatar {
    transition: all 0.2s ease;
}
#btn-delete-avatar:hover {
    background-color: rgba(244, 63, 94, 0.1) !important;
    color: #f43f5e !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
}

/* ==========================================================================
   Collaboration Kanban Task Card Button (Detail Tugas)
   ========================================================================== */
.task-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    z-index: 5;
    position: relative;
}

/* Hover state on the button itself */
.task-detail-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Hover state on the task card highlights the button border */
.task-card:hover .task-detail-btn {
    border-color: rgba(99, 102, 241, 0.4);
}

/* Done task campfire overlay exceptions */
.task-card.done-task-fire .task-detail-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow: none !important;
}

.task-card.done-task-fire .task-detail-btn:hover {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}


