/* ========================================
   CleanSpark ADMIN PANEL — admin.css
   Complete with Logo Support, Worker Names Field,
   PDF Report Styles, Professional Design,
   Job Applications Section, Dark Mode,
   Payment Status Badges, Payments History Modal,
   and Rejection Modal
   ======================================== */

/* ============================================================
   CSS VARIABLES & DARK/LIGHT THEME
   ============================================================ */
   /* ========================================
   CleanSpark ADMIN PANEL — admin.css
   Complete with All Features: Bookings Workflow, Staff Info, 
   Supervisor Chat, Notifications, Replacement Management
   ======================================== */

/* ============================================================
   CSS VARIABLES & DARK/LIGHT THEME
   ============================================================ */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #1a202c;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --sidebar-bg: #1a1e2b;
    --sidebar-hover: #2d3348;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --grad-start: #667eea;
    --grad-end: #764ba2;
    --body-bg: #f5f7fc;
    --border: #e2e8f0;
    --text-muted: #718096;
    --text-main: #1a202c;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --primary: #667eea;
    --pink-color: #ec4899;
    --black-color: #1f2937;
    
    /* Light Theme Variables */
    --bg-body: #f5f7fc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-sidebar: #1a1e2b;
    --bg-sidebar-hover: #2d3348;
    --bg-topbar: #ffffff;
    --bg-section-alt: #f7fafc;
    --bg-fafbfc: #fafbfc;
    --bg-filter-btn: #f7fafc;
    --bg-filter-btn-hover: rgba(102,126,234,0.05);
    --bg-quick-action: #f7fafc;
    --bg-upload-zone: #f7fafc;
    --bg-upload-zone-hover: rgba(102,126,234,0.04);
    --bg-otp-input: #ffffff;
    --bg-otp-focus: rgba(102,126,234,0.1);
    --bg-modal: #ffffff;
    --bg-modal-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-login-card: #ffffff;
    --bg-login-overlay: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-logout-dialog: #ffffff;
    --bg-logout-warning: #fffbeb;
    --bg-logout-loading: rgba(0,0,0,0.85);
    --bg-toast: #ffffff;
    --bg-progress-green: rgba(22,163,74,0.1);
    --bg-progress-red: rgba(220,38,38,0.08);
    --bg-progress-yellow: rgba(217,119,6,0.1);
    --bg-progress-blue: rgba(37,99,235,0.1);
    --bg-legend-green: #16a34a;
    --bg-legend-red: #dc2626;
    --bg-legend-yellow: #d97706;
    --bg-legend-blue: #2563eb;
    --bg-legend-black: #1f2937;
    --bg-legend-pink: #ec4899;
    --bg-reply-original: #f7fafc;
    --bg-window-open: linear-gradient(135deg, rgba(22,163,74,0.03), white);
    --bg-window-closed: linear-gradient(135deg, rgba(220,38,38,0.03), white);
    --bg-payment-row: #f0fdf4;
    --bg-chat-own: #667eea;
    --bg-chat-other: #f1f5f9;
    --bg-chat-sidebar: #f8fafc;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    --text-sidebar: #a0aec0;
    --text-sidebar-active: #ffffff;
    --text-login: #1a202c;
    --text-login-subtitle: #718096;
    --text-logout: #1a202c;
    --text-logout-muted: #718096;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dashed: #cbd5e1;
    
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.2);
    --shadow-login: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-logout: 0 25px 60px rgba(0,0,0,0.3);
    --shadow-toast: 0 10px 30px rgba(0,0,0,0.15);
    
    --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-info: linear-gradient(135deg, #0dcaf0, #0d6efd);
    
    --status-open-bg: rgba(22,163,74,0.1);
    --status-open-text: #16a34a;
    --status-open-border: rgba(22,163,74,0.2);
    --status-closed-bg: rgba(220,38,38,0.1);
    --status-closed-text: #dc2626;
    --status-closed-border: rgba(220,38,38,0.2);
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-white: #1e1e2f;
    --bg-card: #1e1e2f;
    --bg-input: #2a2a3e;
    --bg-sidebar: #0d0d1a;
    --bg-sidebar-hover: #1e1e30;
    --bg-topbar: #1e1e2f;
    --bg-section-alt: #2a2a3e;
    --bg-fafbfc: #2a2a3e;
    --bg-filter-btn: #2a2a3e;
    --bg-filter-btn-hover: rgba(102,126,234,0.12);
    --bg-quick-action: #2a2a3e;
    --bg-upload-zone: #2a2a3e;
    --bg-upload-zone-hover: rgba(102,126,234,0.1);
    --bg-otp-input: #2a2a3e;
    --bg-otp-focus: rgba(102,126,234,0.2);
    --bg-modal: #1e1e2f;
    --bg-modal-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-login-card: #1e1e2f;
    --bg-login-overlay: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-logout-dialog: #1e1e2f;
    --bg-logout-warning: #3a2a1a;
    --bg-logout-loading: rgba(0,0,0,0.9);
    --bg-toast: #1e1e2f;
    --bg-progress-green: rgba(34,197,94,0.15);
    --bg-progress-red: rgba(239,68,68,0.12);
    --bg-progress-yellow: rgba(245,158,11,0.15);
    --bg-progress-blue: rgba(59,130,246,0.15);
    --bg-legend-green: #22c55e;
    --bg-legend-red: #ef4444;
    --bg-legend-yellow: #f59e0b;
    --bg-legend-blue: #3b82f6;
    --bg-legend-black: #e0e0e0;
    --bg-legend-pink: #ec4899;
    --bg-reply-original: #2a2a3e;
    --bg-window-open: linear-gradient(135deg, rgba(34,197,94,0.08), #1e1e2f);
    --bg-window-closed: linear-gradient(135deg, rgba(239,68,68,0.08), #1e1e2f);
    --bg-payment-row: rgba(34,197,94,0.08);
    --bg-chat-own: #667eea;
    --bg-chat-other: #2a2a3e;
    --bg-chat-sidebar: #1a1a2e;
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #8888a0;
    --text-light: #6a6a7e;
    --text-white: #ffffff;
    --text-sidebar: #8888a0;
    --text-sidebar-active: #ffffff;
    --text-login: #e0e0e0;
    --text-login-subtitle: #a0a0b0;
    --text-logout: #e0e0e0;
    --text-logout-muted: #a0a0b0;
    
    --border-color: #3a3a4e;
    --border-light: #2a2a3e;
    --border-dashed: #3a3a4e;
    
    --shadow-card: 0 10px 30px rgba(0,0,0,0.2);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.4);
    --shadow-login: 0 25px 50px -12px rgba(0,0,0,0.5);
    --shadow-logout: 0 25px 60px rgba(0,0,0,0.5);
    --shadow-toast: 0 10px 30px rgba(0,0,0,0.3);
    
    --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-info: linear-gradient(135deg, #0dcaf0, #0d6efd);
    
    --status-open-bg: rgba(34,197,94,0.15);
    --status-open-text: #4ade80;
    --status-open-border: rgba(34,197,94,0.3);
    --status-closed-bg: rgba(239,68,68,0.15);
    --status-closed-text: #f87171;
    --status-closed-border: rgba(239,68,68,0.3);
    
    --scrollbar-track: #1e1e2f;
    --scrollbar-thumb: #3a3a4e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    flex-shrink: 0;
    outline: none;
    padding: 0;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--grad-start);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.theme-toggle-btn:active {
    transform: rotate(15deg) scale(0.95);
}

.theme-toggle-btn i {
    position: absolute;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
}

.theme-toggle-btn .bi-sun-fill {
    opacity: 0;
    transform: translateY(30px) rotate(-90deg);
    color: #f8961e;
}

.theme-toggle-btn .bi-moon-fill {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    color: #6366f1;
}

[data-theme="dark"] .theme-toggle-btn .bi-sun-fill {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .bi-moon-fill {
    opacity: 0;
    transform: translateY(-30px) rotate(90deg);
}

/* ========================================
   NOTIFICATION BELL & PANEL
   ======================================== */
.notification-dropdown-wrapper {
    position: relative;
}

.notification-bell-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 30px;
    transition: all 0.2s;
}

.notification-bell-btn:hover {
    background: var(--bg-section-alt);
    color: var(--grad-start);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: #dc2626;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

.notification-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--border-color);
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.notification-header button {
    background: transparent;
    border: none;
    color: var(--grad-start);
    font-size: 11px;
    cursor: pointer;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-section-alt);
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.05);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.booking { background: rgba(59,130,246,0.1); color: #3b82f6; }
.notification-icon.staff { background: rgba(236,72,153,0.1); color: #ec4899; }
.notification-icon.message { background: rgba(22,163,74,0.1); color: #16a34a; }
.notification-icon.payment { background: rgba(245,158,11,0.1); color: #d97706; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-time {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 3px;
}

.notification-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   MESSAGE TABS
   ======================================== */
.message-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.message-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-filter-btn);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.message-tab-btn i { font-size: 15px; }

.message-tab-btn:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
}

.message-tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.msg-count-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.message-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.message-tab-content.active { display: block; }

/* ========================================
   GENERAL SUPERVISOR CHAT
   ======================================== */
.general-chat-container {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 500px;
}

.chat-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-chat-sidebar);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    margin-top: 8px;
}

.chat-contacts-list {
    flex: 1;
    overflow-y: auto;
}

.chat-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.chat-contact-item:hover {
    background: var(--bg-filter-btn-hover);
}

.chat-contact-item.active {
    background: rgba(102,126,234,0.1);
    border-left: 3px solid var(--grad-start);
}

.chat-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-contact-info {
    flex: 1;
    min-width: 0;
}

.chat-contact-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.chat-contact-last {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-contact-badge {
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.chat-placeholder {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.chat-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.chat-message {
    display: flex;
    max-width: 70%;
}

.chat-message.own {
    align-self: flex-end;
}

.chat-message.other {
    align-self: flex-start;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.own .chat-bubble {
    background: var(--bg-chat-own);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.other .chat-bubble {
    background: var(--bg-chat-other);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 10px;
    margin-top: 4px;
    display: flex;
    gap: 8px;
    color: var(--text-muted);
}

.chat-attachment-preview {
    margin-top: 6px;
}

.chat-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 12px;
    font-size: 11px;
    color: var(--grad-start);
    text-decoration: none;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-attachment {
    flex-shrink: 0;
}

.attach-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.attach-btn:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
}

.chat-input-area textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: none;
    background: var(--bg-input);
    color: var(--text-primary);
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--grad-start);
}

.send-msg-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.send-msg-btn:hover {
    transform: scale(1.05);
}

/* ========================================
   BOOKING STATS CARDS & FILTERS
   ======================================== */
.filter-select {
    min-width: 140px;
}

.filter-date {
    min-width: 130px;
}

/* Booking Status Badges */
.booking-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending-review { background: rgba(245,158,11,0.1); color: #d97706; }
.status-confirmed { background: rgba(22,163,74,0.1); color: #16a34a; }
.status-not-confirmed { background: rgba(113,128,150,0.1); color: #718096; }
.status-in-progress { background: rgba(59,130,246,0.1); color: #3b82f6; }
.status-completed { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.status-cancelled { background: rgba(220,38,38,0.1); color: #dc2626; }

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.priority-low { background: rgba(22,163,74,0.1); color: #16a34a; }
.priority-normal { background: rgba(59,130,246,0.1); color: #3b82f6; }
.priority-high { background: rgba(245,158,11,0.1); color: #d97706; }
.priority-urgent { background: rgba(220,38,38,0.1); color: #dc2626; }

/* ========================================
   STAFF INFO SECTION
   ======================================== */
.staff-issue-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.staff-issue-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.issue-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.issue-status-new { background: rgba(59,130,246,0.1); color: #3b82f6; }
.issue-status-under-review { background: rgba(245,158,11,0.1); color: #d97706; }
.issue-status-replacement-assigned { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.issue-status-approved-leave { background: rgba(22,163,74,0.1); color: #16a34a; }
.issue-status-rejected { background: rgba(220,38,38,0.1); color: #dc2626; }
.issue-status-resolved { background: rgba(113,128,150,0.1); color: #718096; }

/* ========================================
   AVAILABLE STAFF LIST FOR REPLACEMENT
   ======================================== */
.available-staff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.available-staff-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.available-staff-item:hover {
    border-color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
}

.available-staff-item.selected {
    border-color: var(--grad-start);
    background: rgba(102,126,234,0.08);
}

.available-staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.available-staff-info {
    flex: 1;
}

.available-staff-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.available-staff-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   ESTIMATION TOTAL DISPLAY
   ======================================== */
.estimation-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--grad-start);
    text-align: right;
    padding: 10px;
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
}

/* ========================================
   SEND INVOICE INFO
   ======================================== */
.send-invoice-info {
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    border-left: 3px solid var(--grad-start);
}

/* ========================================
   STAFF AVAILABILITY INDICATORS
   ======================================== */
.staff-availability {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.availability-available { background: rgba(22,163,74,0.1); color: #16a34a; }
.availability-assigned { background: rgba(59,130,246,0.1); color: #3b82f6; }
.availability-leave { background: rgba(245,158,11,0.1); color: #d97706; }
.availability-emergency { background: rgba(220,38,38,0.1); color: #dc2626; }

/* ========================================
   RESPONSIVE CHAT
   ======================================== */
@media (max-width: 768px) {
    .general-chat-container {
        flex-direction: column;
        height: 600px;
    }
    
    .chat-sidebar {
        width: 100%;
        max-height: 250px;
    }
    
    .chat-message {
        max-width: 85%;
    }
    
    .notification-panel {
        width: 300px;
        right: -60px;
    }
    
    .message-tabs {
        flex-wrap: wrap;
    }
    
    .message-tab-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .filter-select, .filter-date {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .chat-message {
        max-width: 95%;
    }
    
    .notification-panel {
        width: 280px;
        right: -80px;
    }
}

/* ========================================
   EXISTING STYLES (Preserved from original)
   ======================================== */
/* [All existing styles from the original admin.css remain here]
   Including: Login, Dashboard, Sidebar, Tables, Forms, Modals,
   Payments History, Services Assignment, Job Applications,
   Invoice PDF, etc. */

/* For brevity, I'm showing only the new additions above.
   The full CSS includes all the original styles that were
   previously defined in the existing admin.css file. */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #1a202c;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --sidebar-bg: #1a1e2b;
    --sidebar-hover: #2d3348;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --grad-start: #667eea;
    --grad-end: #764ba2;
    --body-bg: #f5f7fc;
    --border: #e2e8f0;
    --text-muted: #718096;
    --text-main: #1a202c;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --primary: #667eea;
    --pink-color: #ec4899;
    --black-color: #1f2937;
    
    /* Light Theme Variables */
    --bg-body: #f5f7fc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-sidebar: #1a1e2b;
    --bg-sidebar-hover: #2d3348;
    --bg-topbar: #ffffff;
    --bg-section-alt: #f7fafc;
    --bg-fafbfc: #fafbfc;
    --bg-filter-btn: #f7fafc;
    --bg-filter-btn-hover: rgba(102,126,234,0.05);
    --bg-quick-action: #f7fafc;
    --bg-upload-zone: #f7fafc;
    --bg-upload-zone-hover: rgba(102,126,234,0.04);
    --bg-otp-input: #ffffff;
    --bg-otp-focus: rgba(102,126,234,0.1);
    --bg-modal: #ffffff;
    --bg-modal-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-login-card: #ffffff;
    --bg-login-overlay: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-logout-dialog: #ffffff;
    --bg-logout-warning: #fffbeb;
    --bg-logout-loading: rgba(0,0,0,0.85);
    --bg-toast: #ffffff;
    --bg-progress-green: rgba(22,163,74,0.1);
    --bg-progress-red: rgba(220,38,38,0.08);
    --bg-progress-yellow: rgba(217,119,6,0.1);
    --bg-progress-blue: rgba(37,99,235,0.1);
    --bg-legend-green: #16a34a;
    --bg-legend-red: #dc2626;
    --bg-legend-yellow: #d97706;
    --bg-legend-blue: #2563eb;
    --bg-legend-black: #1f2937;
    --bg-legend-pink: #ec4899;
    --bg-reply-original: #f7fafc;
    --bg-window-open: linear-gradient(135deg, rgba(22,163,74,0.03), white);
    --bg-window-closed: linear-gradient(135deg, rgba(220,38,38,0.03), white);
    --bg-payment-row: #f0fdf4;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    --text-sidebar: #a0aec0;
    --text-sidebar-active: #ffffff;
    --text-login: #1a202c;
    --text-login-subtitle: #718096;
    --text-logout: #1a202c;
    --text-logout-muted: #718096;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dashed: #cbd5e1;
    
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.2);
    --shadow-login: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-logout: 0 25px 60px rgba(0,0,0,0.3);
    --shadow-toast: 0 10px 30px rgba(0,0,0,0.15);
    
    --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-info: linear-gradient(135deg, #0dcaf0, #0d6efd);
    
    --status-open-bg: rgba(22,163,74,0.1);
    --status-open-text: #16a34a;
    --status-open-border: rgba(22,163,74,0.2);
    --status-closed-bg: rgba(220,38,38,0.1);
    --status-closed-text: #dc2626;
    --status-closed-border: rgba(220,38,38,0.2);
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-white: #1e1e2f;
    --bg-card: #1e1e2f;
    --bg-input: #2a2a3e;
    --bg-sidebar: #0d0d1a;
    --bg-sidebar-hover: #1e1e30;
    --bg-topbar: #1e1e2f;
    --bg-section-alt: #2a2a3e;
    --bg-fafbfc: #2a2a3e;
    --bg-filter-btn: #2a2a3e;
    --bg-filter-btn-hover: rgba(102,126,234,0.12);
    --bg-quick-action: #2a2a3e;
    --bg-upload-zone: #2a2a3e;
    --bg-upload-zone-hover: rgba(102,126,234,0.1);
    --bg-otp-input: #2a2a3e;
    --bg-otp-focus: rgba(102,126,234,0.2);
    --bg-modal: #1e1e2f;
    --bg-modal-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-login-card: #1e1e2f;
    --bg-login-overlay: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-logout-dialog: #1e1e2f;
    --bg-logout-warning: #3a2a1a;
    --bg-logout-loading: rgba(0,0,0,0.9);
    --bg-toast: #1e1e2f;
    --bg-progress-green: rgba(34,197,94,0.15);
    --bg-progress-red: rgba(239,68,68,0.12);
    --bg-progress-yellow: rgba(245,158,11,0.15);
    --bg-progress-blue: rgba(59,130,246,0.15);
    --bg-legend-green: #22c55e;
    --bg-legend-red: #ef4444;
    --bg-legend-yellow: #f59e0b;
    --bg-legend-blue: #3b82f6;
    --bg-legend-black: #e0e0e0;
    --bg-legend-pink: #ec4899;
    --bg-reply-original: #2a2a3e;
    --bg-window-open: linear-gradient(135deg, rgba(34,197,94,0.08), #1e1e2f);
    --bg-window-closed: linear-gradient(135deg, rgba(239,68,68,0.08), #1e1e2f);
    --bg-payment-row: rgba(34,197,94,0.08);
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #8888a0;
    --text-light: #6a6a7e;
    --text-white: #ffffff;
    --text-sidebar: #8888a0;
    --text-sidebar-active: #ffffff;
    --text-login: #e0e0e0;
    --text-login-subtitle: #a0a0b0;
    --text-logout: #e0e0e0;
    --text-logout-muted: #a0a0b0;
    
    --border-color: #3a3a4e;
    --border-light: #2a2a3e;
    --border-dashed: #3a3a4e;
    
    --shadow-card: 0 10px 30px rgba(0,0,0,0.2);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.4);
    --shadow-login: 0 25px 50px -12px rgba(0,0,0,0.5);
    --shadow-logout: 0 25px 60px rgba(0,0,0,0.5);
    --shadow-toast: 0 10px 30px rgba(0,0,0,0.3);
    
    --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-info: linear-gradient(135deg, #0dcaf0, #0d6efd);
    
    --status-open-bg: rgba(34,197,94,0.15);
    --status-open-text: #4ade80;
    --status-open-border: rgba(34,197,94,0.3);
    --status-closed-bg: rgba(239,68,68,0.15);
    --status-closed-text: #f87171;
    --status-closed-border: rgba(239,68,68,0.3);
    
    --scrollbar-track: #1e1e2f;
    --scrollbar-thumb: #3a3a4e;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    flex-shrink: 0;
    outline: none;
    padding: 0;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--grad-start);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.theme-toggle-btn:active {
    transform: rotate(15deg) scale(0.95);
}

.theme-toggle-btn i {
    position: absolute;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
}

.theme-toggle-btn .bi-sun-fill {
    opacity: 0;
    transform: translateY(30px) rotate(-90deg);
    color: #f8961e;
}

.theme-toggle-btn .bi-moon-fill {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    color: #6366f1;
}

[data-theme="dark"] .theme-toggle-btn .bi-sun-fill {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .bi-moon-fill {
    opacity: 0;
    transform: translateY(-30px) rotate(90deg);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 0 15px rgba(248, 150, 30, 0.4);
}

/* ========================================
   PAYMENTS HISTORY MODAL STYLES (NEW)
   ======================================== */
.payments-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-section-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.payment-summary-card {
    flex: 1;
    min-width: 150px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.payment-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.payment-summary-card .summary-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.payment-summary-card .summary-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.payment-summary-card .summary-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-summary-card.total-paid .summary-icon { color: #16a34a; }
.payment-summary-card.total-unpaid .summary-icon { color: #dc2626; }
.payment-summary-card.total-partial .summary-icon { color: #d97706; }
.payment-summary-card.total-pending .summary-icon { color: #2563eb; }

.payment-history-row {
    transition: background-color 0.2s;
}

.payment-history-row:hover {
    background: var(--bg-payment-row);
}

/* ============================================================
   SERVICES ASSIGNMENT SECTION STYLES — COMPLETE FIX
   ============================================================ */

/* Sub-tabs Container */
.assignment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.assign-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-filter-btn);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.assign-tab-btn i { 
    font-size: 15px; 
    transition: transform 0.25s ease;
}

.assign-tab-btn:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
    transform: translateY(-1px);
}

.assign-tab-btn:hover i {
    transform: scale(1.1);
}

.assign-tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    transform: translateY(-2px);
}

.assign-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--grad-end);
}

.assign-tab-content {
    display: none;
    animation: fadeInUp 0.35s ease;
}

.assign-tab-content.active { 
    display: block; 
}

/* Legend */
.assign-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.legend-item:hover .legend-dot {
    transform: scale(1.3);
}

.legend-green  { background: var(--bg-legend-green); box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
.legend-red    { background: var(--bg-legend-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.2); }
.legend-yellow { background: var(--bg-legend-yellow); box-shadow: 0 0 0 3px rgba(217,119,6,0.2); }
.legend-blue   { background: var(--bg-legend-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.legend-black  { background: var(--bg-legend-black); box-shadow: 0 0 0 3px rgba(31,41,55,0.3); }
.legend-pink   { background: var(--bg-legend-pink); box-shadow: 0 0 0 3px rgba(236,72,153,0.3); }

/* Progress Indicator */
.progress-indicator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.progress-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.progress-green  { background: var(--bg-progress-green);  color: #16a34a; border: 1px solid rgba(22,163,74,0.2); }
.progress-red    { background: var(--bg-progress-red);    color: #dc2626; border: 1px solid rgba(220,38,38,0.15); }
.progress-yellow { background: var(--bg-progress-yellow); color: #d97706; border: 1px solid rgba(217,119,6,0.2); }
.progress-blue   { background: var(--bg-progress-blue);   color: #2563eb; border: 1px solid rgba(37,99,235,0.2); }

.btn-progress-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.btn-progress-change:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
    background: rgba(102,126,234,0.08);
    transform: scale(1.1);
}

/* Progress Dropdown */
.progress-dropdown {
    position: fixed;
    z-index: 99999;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1.5px solid var(--border-color);
    padding: 8px;
    min-width: 200px;
    animation: fadeIn 0.2s ease;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.progress-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.15s, background-color 0.3s ease;
    gap: 10px;
}

.progress-dropdown-item:hover {
    background: var(--bg-section-alt);
    transform: translateX(2px);
}

/* Assignment Status Badges */
.assign-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.assign-status-badge.assigned {
    background: rgba(22,163,74,0.1);
    color: #16a34a;
    border: 1px solid rgba(22,163,74,0.2);
}

.assign-status-badge.not-assigned {
    background: rgba(113,128,150,0.08);
    color: #718096;
    border: 1px solid rgba(113,128,150,0.15);
}

/* Services Count Badge */
.services-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}

/* Assign Now Button */
.btn-assign-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    white-space: nowrap;
}

.btn-assign-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.45);
}

.btn-assign-now:active {
    transform: translateY(0);
}

/* Assigned To Chip */
.assigned-to-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-section-alt);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
}

.assigned-to-chip:hover {
    border-color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
}

/* Staff Type Indicator */
.staff-type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    letter-spacing: 0.03em;
}

.staff-type-supervisor {
    background: rgba(31, 41, 55, 0.9);
    color: white;
    border: 1px solid rgba(31, 41, 55, 0.5);
}

.staff-type-contractor {
    background: rgba(236, 72, 153, 0.9);
    color: white;
    border: 1px solid rgba(236, 72, 153, 0.5);
}

/* ===== ASSIGN SERVICE MODAL ===== */
.assign-service-info {
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.assign-staff-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.assign-staff-picker::-webkit-scrollbar {
    width: 6px;
}

.assign-staff-picker::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

.assign-staff-picker::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

.assign-staff-pick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    background: var(--bg-card);
    position: relative;
}

.assign-staff-pick-item:hover {
    border-color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
    transform: translateX(2px);
}

.assign-staff-pick-item.selected {
    border-color: var(--grad-start);
    background: rgba(102,126,234,0.08);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.assign-staff-pick-item.current {
    border-color: #16a34a;
    background: rgba(22,163,74,0.04);
}

.assign-picker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.assign-picker-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.assign-pick-info {
    flex: 1;
    min-width: 0;
}

.assign-pick-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.assign-pick-info span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 2px;
}

.assign-pick-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.assign-pick-count small {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.current-tag {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22,163,74,0.1);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(22,163,74,0.2);
}

/* Staff Services View Modal */
.staff-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.staff-service-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.25s, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.staff-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--grad-start);
}

.staff-service-card .card-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.staff-service-card .card-img-placeholder {
    width: 100%;
    height: 90px;
    background: var(--bg-section-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.staff-service-card .card-img-placeholder i {
    font-size: 28px;
    color: #a0aec0;
}

.staff-service-card .card-body {
    padding: 12px;
}

.staff-service-card .card-body strong {
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.staff-service-card .card-body .card-meta {
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   BRAND LOGO STYLES
   ======================================== */
.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo-fallback {
    display: none;
}

/* Login page logo */
.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.login-logo-fallback {
    font-size: 30px;
    color: white;
}

/* ========================================
   LOGOUT OVERLAY STYLES
   ======================================== */
.logout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logout-dialog {
    background: var(--bg-logout-dialog);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-logout);
    position: relative;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logout-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.logout-icon-main {
    font-size: 36px;
    color: #dc2626;
}

.logout-dialog h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-logout);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.logout-dialog p {
    color: var(--text-logout-muted);
    font-size: 14px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.logout-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-logout-warning);
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    color: #92400e !important;
    font-size: 12px !important;
    font-weight: 500;
    margin: 12px 0 20px !important;
    transition: background-color 0.3s ease;
}

.logout-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-logout-cancel {
    padding: 12px 24px;
    background: var(--bg-section-alt);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-logout-cancel:hover {
    background: var(--border-color);
    border-color: #cbd5e1;
}

.btn-logout-confirm {
    padding: 12px 24px;
    background: var(--gradient-danger);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-logout-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* ===== LOGOUT LOADING ===== */
.logout-loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-logout-loading);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease;
}

.logout-loading-content {
    text-align: center;
    color: white;
    max-width: 380px;
    width: 90%;
}

.logout-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
}

.logout-loading-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.logout-loading-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.logout-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.logout-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* ========================================
   LOGIN SECTION
   ======================================== */
.login-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-login-overlay);
    z-index: 1000;
    padding: 16px;
    overflow-y: auto;
    transition: background 0.3s ease;
}

.login-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-card {
    position: relative;
    background: var(--bg-login-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-login);
    margin: auto;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    overflow: hidden;
}

.logo-icon i { font-size: 30px; color: white; }

.login-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-login);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.login-header p {
    color: var(--text-login-subtitle);
    font-size: 13px;
    transition: color 0.3s ease;
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.3s ease; }

.input-group-custom {
    position: relative;
    margin-bottom: 18px;
}

.input-group-custom > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.input-group-custom input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s ease, color 0.3s ease;
}

.input-group-custom input:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.input-group-custom input::placeholder {
    color: var(--text-light);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.btn-login:active { transform: translateY(0); }

.otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.otp-header i {
    font-size: 44px;
    color: var(--grad-start);
    display: block;
    margin-bottom: 10px;
}

.otp-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.otp-header p {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.otp-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-otp-input);
    color: var(--text-primary);
    transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.otp-input:focus {
    border-color: var(--grad-start);
    outline: none;
    box-shadow: 0 0 0 3px var(--bg-otp-focus);
}

.btn-resend, .btn-back {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--grad-start);
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: color 0.2s;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.btn-resend:hover, .btn-back:hover { color: var(--grad-end); }

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--grad-start);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.login-footer a:hover { text-decoration: underline; }

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.dashboard-nav {
    background: var(--bg-topbar);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 200;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-brand span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-section-alt);
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.user-info i { font-size: 16px; color: var(--grad-start); }
.user-info span { 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.logout-btn:hover { background: #fff5f5; }

.dashboard-wrapper {
    display: flex;
    flex: 1;
}

/* ========================================
   SIDEBAR
   ======================================== */
.admin-sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    min-height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    align-self: flex-start;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 0;
}

.sidebar-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 2px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-sidebar);
    font-weight: 500;
    font-size: 14px;
    user-select: none;
}

.sidebar-menu li i {
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
}

.sidebar-menu li:hover {
    background: var(--bg-sidebar-hover);
    color: white;
}

.sidebar-menu li.active {
    background: var(--gradient-primary);
    color: var(--text-sidebar-active);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.sidebar-menu .logout-item {
    margin-top: 30px;
    color: #f56565;
}

.sidebar-menu .logout-item:hover {
    background: #dc3545;
    color: white;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.admin-content {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
    min-width: 0;
    background: var(--bg-body);
    transition: background-color 0.3s ease;
}

.admin-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-section.active { display: block; }

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.section-header h2 i {
    color: var(--grad-start);
    font-size: 22px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    transition: color 0.3s ease;
}

/* ========================================
   APPLICATION WINDOW CONTROL
   ======================================== */
.application-window-control {
    margin-bottom: 24px;
}

.window-status-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.window-status-card.window-open {
    border-color: #16a34a;
    background: var(--bg-window-open);
}

.window-status-card.window-closed {
    border-color: #dc2626;
    background: var(--bg-window-closed);
}

.window-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
}

.window-open .window-status-icon {
    background: var(--status-open-bg);
    color: var(--status-open-text);
}

.window-closed .window-status-icon {
    background: var(--status-closed-bg);
    color: var(--status-closed-text);
}

.window-status-info {
    flex: 1;
}

.window-status-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.window-status-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    transition: color 0.3s ease;
}

.window-status-info .window-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 6px;
}

.window-status-badge.open {
    background: var(--status-open-bg);
    color: var(--status-open-text);
    border: 1px solid var(--status-open-border);
}

.window-status-badge.closed {
    background: var(--status-closed-bg);
    color: var(--status-closed-text);
    border: 1px solid var(--status-closed-border);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 32px;
    transition: all 0.35s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.35s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* ========================================
   APPLICATIONS GRID
   ======================================== */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.application-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--grad-start);
}

.application-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.applicant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.applicant-info {
    flex: 1;
    min-width: 0;
}

.applicant-info h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.applicant-info .position-badge {
    font-size: 12px;
    color: var(--grad-start);
    font-weight: 600;
    background: rgba(102,126,234,0.08);
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.application-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.app-detail-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.app-detail-mini i {
    font-size: 13px;
    color: var(--grad-start);
    width: 16px;
    text-align: center;
}

.application-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.application-card-footer .app-date {
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Application Status Badges */
.application-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-status-pending {
    background: rgba(245,158,11,0.1);
    color: #d97706;
    border: 1px solid rgba(245,158,11,0.2);
}

.app-status-under-review {
    background: rgba(59,130,246,0.1);
    color: #2563eb;
    border: 1px solid rgba(59,130,246,0.2);
}

.app-status-approved {
    background: rgba(22,163,74,0.1);
    color: #16a34a;
    border: 1px solid rgba(22,163,74,0.2);
}

.app-status-rejected {
    background: rgba(220,38,38,0.08);
    color: #dc2626;
    border: 1px solid rgba(220,38,38,0.15);
}

/* ================================================
   APPLICATION DETAIL MODAL — PROFESSIONAL REDESIGN
   ================================================ */
.app-detail-modal-content {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.app-detail-modal-header {
    background: linear-gradient(135deg, #1a1e2b 0%, #2d3348 100%);
    color: white;
    border-bottom: none;
    padding: 22px 28px;
}

.app-modal-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-modal-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.app-modal-header-text h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.app-modal-header-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin: 3px 0 0 0;
    font-weight: 400;
}

.app-detail-modal-body {
    padding: 0;
    background: var(--bg-section-alt);
    transition: background-color 0.3s ease;
}

.app-detail-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    gap: 10px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Applicant Profile Banner */
.app-profile-banner {
    background: var(--bg-card);
    padding: 28px 28px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.app-profile-avatar-lg {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 30px;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
    position: relative;
    letter-spacing: -1px;
}

.app-profile-avatar-lg.has-photo {
    background: transparent;
    overflow: hidden;
}

.app-profile-avatar-lg.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.app-profile-info {
    flex: 1;
    min-width: 0;
}

.app-profile-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.app-profile-position {
    font-size: 14px;
    font-weight: 600;
    color: var(--grad-start);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.app-profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-profile-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--bg-section-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.app-profile-meta-tag i {
    color: var(--grad-start);
    font-size: 13px;
}

.app-profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Details Content Body */
.app-detail-content-body {
    padding: 24px 28px;
}

/* Information Sections */
.app-info-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.app-info-section:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.app-info-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.12);
}

.app-info-section-header i {
    font-size: 20px;
    color: var(--grad-start);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-info-section-header h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.app-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.app-info-field {
    padding: 14px 18px;
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
}

.app-info-field:hover {
    background: var(--bg-filter-btn-hover);
    border-color: rgba(102, 126, 234, 0.2);
}

.app-info-field .field-label-mini {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.app-info-field .field-label-mini i {
    font-size: 12px;
    color: var(--grad-start);
}

.app-info-field .field-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
    transition: color 0.3s ease;
}

.app-info-field .field-value.text-muted {
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

/* Notes Section */
.app-notes-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #92400e;
}

.app-notes-box strong {
    display: block;
    margin-bottom: 6px;
    color: #78350f;
}

/* Supporting Documents Section */
.app-documents-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.app-documents-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.12);
}

.app-documents-section-header i {
    font-size: 20px;
    color: var(--grad-start);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-documents-section-header h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.app-documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-section-alt);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.25s, background-color 0.3s ease, border-color 0.3s ease;
    gap: 16px;
    flex-wrap: wrap;
}

.app-document-item:hover {
    background: var(--bg-filter-btn-hover);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
    transform: translateX(2px);
}

.app-document-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.app-document-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.app-document-icon.icon-cv {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.app-document-icon.icon-id {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.app-document-icon.icon-letter {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.app-document-icon.icon-cert {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.app-document-icon.icon-photo {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.app-document-icon.icon-other {
    background: rgba(113, 128, 150, 0.1);
    color: #718096;
}

.app-document-icon.icon-missing {
    background: rgba(220, 38, 38, 0.05);
    color: #ef4444;
    opacity: 0.5;
}

.app-document-details {
    flex: 1;
    min-width: 0;
}

.app-document-details .doc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.app-document-details .doc-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.doc-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.03em;
}

.doc-status-badge.uploaded {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.doc-status-badge.missing {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.app-document-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.app-doc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.app-doc-action-btn:hover {
    transform: translateY(-1px);
}

.app-doc-action-btn.btn-view {
    border-color: #3b82f6;
    color: #3b82f6;
}

.app-doc-action-btn.btn-view:hover {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.app-doc-action-btn.btn-download {
    border-color: #16a34a;
    color: #16a34a;
}

.app-doc-action-btn.btn-download:hover {
    background: #16a34a;
    color: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.app-doc-action-btn.btn-open {
    border-color: var(--grad-start);
    color: var(--grad-start);
}

.app-doc-action-btn.btn-open:hover {
    background: var(--grad-start);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.app-doc-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Action Buttons at Bottom */
.app-detail-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    transition: border-color 0.3s ease;
}

/* ========================================
   PAYMENT STATUS BADGES
   ======================================== */
.payment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-status-badge:hover {
    transform: scale(1.02);
    filter: brightness(0.98);
}

.payment-status-paid {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.payment-status-unpaid {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.payment-status-partial {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.payment-status-pending {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.payment-status-updated {
    animation: paymentPulse 0.5s ease-out;
}

@keyframes paymentPulse {
    0% { transform: scale(1); background: rgba(22, 163, 74, 0.3); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); background: rgba(22, 163, 74, 0.12); }
}

/* Payment Status Dropdown */
.payment-dropdown {
    position: fixed;
    z-index: 99999;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1.5px solid var(--border-color);
    padding: 8px;
    min-width: 180px;
    animation: fadeIn 0.2s ease;
}

.payment-dropdown .progress-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.payment-dropdown .progress-dropdown-item:hover {
    background: var(--bg-section-alt);
    transform: translateX(2px);
}

/* ========================================
   REJECTION REASON MODAL - PROFESSIONAL DESIGN
   ======================================== */

.rejection-modal-content {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-modal);
    background: var(--bg-modal);
}

.rejection-modal-header {
    background: var(--gradient-danger);
    color: white;
    border-bottom: none;
    padding: 22px 28px;
    position: relative;
    overflow: hidden;
}

.rejection-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.rejection-modal-header .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.rejection-modal-header .modal-title i {
    font-size: 28px;
}

.rejection-modal-body {
    padding: 28px;
    background: var(--bg-modal);
}

.rejection-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid #dc2626;
    margin-bottom: 24px;
}

.rejection-warning-box i {
    font-size: 22px;
    color: #dc2626;
    flex-shrink: 0;
}

.rejection-warning-box .warning-text {
    flex: 1;
}

.rejection-warning-box .warning-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.rejection-warning-box .warning-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.rejection-reason-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.rejection-optional-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(113, 128, 150, 0.15);
    color: var(--text-muted);
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.rejection-reason-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-input);
    resize: vertical;
    transition: all 0.2s ease;
}

.rejection-reason-textarea:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.rejection-reason-textarea::placeholder {
    color: var(--text-light);
    font-size: 12px;
}

.rejection-quick-reasons {
    margin-top: 16px;
}

.rejection-quick-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.rejection-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rejection-quick-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1.5px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-filter-btn);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.rejection-quick-btn:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
    transform: translateY(-1px);
}

.rejection-quick-btn:active {
    transform: translateY(0);
}

.rejection-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-reject-confirm {
    background: var(--gradient-danger) !important;
    border: none !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reject-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-reject-confirm:active {
    transform: translateY(0);
}

.btn-reject-cancel {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reject-cancel:hover {
    background: var(--bg-section-alt);
    border-color: var(--grad-start);
    color: var(--text-primary);
}

/* Rejection Reason Display in Application Detail */
.rejection-reason-display {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(220, 38, 38, 0.06);
    border-radius: var(--radius-sm);
    border-left: 3px solid #dc2626;
}

.rejection-reason-display .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #dc2626;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rejection-reason-display .reason-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Animation for Rejection Modal */
@keyframes rejectionModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.rejection-modal-content .modal-content {
    animation: rejectionModalIn 0.3s ease-out;
}

/* ========================================
   SEARCH BOX
   ======================================== */
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 40px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    outline: none;
}

/* ========================================
   FILTER BAR
   ======================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-filter-btn);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========================================
   STATS CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease;
    cursor: pointer;
}

.stat-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-icon i { font-size: 20px; color: var(--grad-start); }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.stat-label { 
    color: var(--text-muted); 
    font-size: 13px; 
    transition: color 0.3s ease;
}

/* ========================================
   FORM CARD
   ======================================== */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--text-primary);
    padding: 10px 12px;
    background: var(--bg-input);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s ease, color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: var(--bg-input);
}

.form-control::placeholder, .form-select::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

.input-tzs {
    position: relative;
    display: flex;
    align-items: center;
}

.tzs-prefix {
    position: absolute;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--grad-start);
    pointer-events: none;
    z-index: 2;
    letter-spacing: 0.05em;
}

.input-tzs .form-control { padding-left: 42px; }

/* ========================================
   CONTRACTOR WORKER NAMES FIELD
   ======================================== */
#contractorWorkerNames {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    resize: vertical;
    min-height: 85px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s ease, color 0.3s ease;
}

#contractorWorkerNames:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

#contractorWorkerNames::placeholder {
    color: var(--text-light);
    font-size: 12px;
}

/* ========================================
   WHAT'S INCLUDED — MANUAL ENTRY
   ======================================== */
.included-manual-entry {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.included-manual-row {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.2s ease;
}

.item-num-icon {
    font-size: 16px;
    color: var(--grad-start);
    flex-shrink: 0;
}

.included-text-input {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s ease, color 0.3s ease;
}

.included-text-input:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.included-text-input::placeholder {
    color: var(--text-light);
}

.included-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #fecaca;
    background: #fff5f5;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.included-remove-btn:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-add-included {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: rgba(102, 126, 234, 0.07);
    border: 1.5px dashed #a5b4fc;
    border-radius: var(--radius-sm);
    color: var(--grad-start);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.btn-add-included:hover {
    background: rgba(102, 126, 234, 0.14);
    border-color: var(--grad-start);
}

/* ========================================
   IMAGE UPLOAD
   ======================================== */
.image-upload-trigger {
    border: 2px dashed #a0aec0;
    color: var(--text-muted);
    font-size: 13px;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: all 0.2s;
    background: var(--bg-section-alt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

.image-upload-trigger:hover {
    border-color: var(--grad-start);
    color: var(--grad-start);
    background: var(--bg-filter-btn-hover);
}

.image-upload-trigger.has-image {
    border-style: solid;
    border-color: var(--success-color);
    color: var(--success-color);
    background: #f0fff4;
}

.service-img-preview {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    vertical-align: middle;
}

/* ========================================
   STAFF PHOTO STYLES
   ======================================== */
.staff-img-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    vertical-align: middle;
}

.staff-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    display: block;
}

.staff-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.staff-avatar-md {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.staff-initials-md {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.staff-avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.staff-initials-lg {
    color: white;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -1px;
}

.staff-photo-lg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo-change-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid white;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.staff-photo-change-btn:hover { transform: scale(1.1); }

.password-field { position: relative; }
.password-field .form-control { padding-right: 42px; }

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    transition: color 0.2s;
    z-index: 2;
}

.pw-toggle:hover { color: var(--grad-start); }

.add-btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   TABLE CONTAINER
   ======================================== */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 24px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.table-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-fafbfc);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.table-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.badge-currency {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--grad-start);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    letter-spacing: 0.04em;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    min-width: 580px;
}

.table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    border-top: none;
    background: var(--bg-fafbfc);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.table td {
    vertical-align: middle;
    padding: 11px 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: rgba(102,126,234,0.03); }

.service-thumb {
    width: 46px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.no-image-thumb {
    width: 46px;
    height: 38px;
    background: var(--bg-section-alt);
    border-radius: 8px;
    border: 1px dashed var(--border-dashed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.location-unguja { background: rgba(102, 126, 234, 0.1); color: #4c51bf; }
.location-pemba  { background: rgba(56, 178, 172, 0.1); color: #2c7a7b; }
.location-both   { background: rgba(118, 75, 162, 0.1); color: var(--grad-end); }

/* Contractor type badges */
.contractor-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.contractor-private {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contractor-government {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Staff status badges */
.staff-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.staff-normal { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.staff-contractor { background: rgba(236, 72, 153, 0.1); color: var(--pink-color); }
.staff-supervisor { background: rgba(31, 41, 55, 0.1); color: var(--black-color); }

/* Message type badges */
.message-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.message-customer { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.message-supervisor { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    margin: 0 2px;
}

.action-btn-edit  { background: rgba(102, 126, 234, 0.1); color: var(--grad-start); }
.action-btn-edit:hover  { background: var(--grad-start); color: white; box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35); }
.action-btn-delete { background: #fff5f5; color: var(--danger-color); }
.action-btn-delete:hover { background: var(--danger-color); color: white; box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3); }
.action-btn-view { background: rgba(13, 202, 240, 0.1); color: var(--info-color); }
.action-btn-view:hover { background: #0dcaf0; color: white; box-shadow: 0 3px 8px rgba(13, 202, 240, 0.3); }
.action-btn-reply { background: rgba(34, 197, 94, 0.1); color: var(--success-color); }
.action-btn-reply:hover { background: var(--success-color); color: white; box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3); }
.action-btn-approve { background: rgba(22,163,74,0.1); color: #16a34a; }
.action-btn-approve:hover { background: #16a34a; color: white; box-shadow: 0 3px 8px rgba(22,163,74,0.3); }
.action-btn-reject { background: rgba(220,38,38,0.1); color: #dc2626; }
.action-btn-reject:hover { background: #dc2626; color: white; box-shadow: 0 3px 8px rgba(220,38,38,0.3); }

.included-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 260px;
}

.included-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--grad-start);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

/* ========================================
   PDF REPORT STYLES (Professional Design)
   ======================================== */
.report-preview {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.report-cover {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid var(--grad-start);
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fafbff, white);
}

.report-cover .report-logo {
    font-size: 48px;
    color: var(--grad-start);
    margin-bottom: 12px;
}

.report-cover h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.report-cover .report-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.report-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.report-meta-item {
    flex: 1;
    min-width: 150px;
    padding: 14px 18px;
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.report-meta-item .meta-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.report-meta-item .meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.report-section {
    margin-bottom: 28px;
    page-break-inside: avoid;
}

.report-section h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--grad-start);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.report-table th {
    background: var(--bg-section-alt);
    padding: 10px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.report-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 12.5px;
    color: var(--text-primary);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.report-summary-card {
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: transform 0.2s, background-color 0.3s ease, border-color 0.3s ease;
}

.report-summary-card:hover {
    transform: translateY(-2px);
}

.report-summary-card .summary-icon {
    font-size: 28px;
    color: var(--grad-start);
    margin-bottom: 8px;
}

.report-summary-card .summary-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.report-summary-card .summary-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.report-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 28px;
    font-size: 11px;
    color: var(--text-muted);
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   CHART CARD
   ======================================== */
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.chart-card h5 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* ========================================
   QUICK ACTIONS
   ======================================== */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    padding: 10px 16px;
    background: var(--bg-quick-action);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-action-btn i { color: var(--grad-start); }

.quick-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-action-btn:hover i { color: white; }

/* ========================================
   RECENT BOOKINGS
   ======================================== */
.recent-booking-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s ease;
}

.recent-booking-item:last-child { border-bottom: none; }

.rbi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-start);
    flex-shrink: 0;
}

.rbi-content strong { 
    font-size: 14px; 
    display: block; 
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.rbi-content p { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin: 0; 
    transition: color 0.3s ease;
}

/* ========================================
   SETTINGS CARD
   ======================================== */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    transition: border-color 0.3s ease;
}

.setting-item:last-of-type { border-bottom: none; }

.setting-info h6 { 
    font-weight: 600; 
    margin-bottom: 4px; 
    font-size: 14px; 
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.setting-info p { 
    color: var(--text-muted); 
    font-size: 12px; 
    margin: 0; 
    transition: color 0.3s ease;
}

.form-switch .form-check-input { width: 44px; height: 22px; cursor: pointer; }
.form-check-input:checked { background-color: var(--grad-start); border-color: var(--grad-start); }

/* ========================================
   MODALS
   ======================================== */
.modal-styled .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    background: var(--bg-modal);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-styled .modal-header {
    background: var(--bg-modal-header);
    color: white;
    border-bottom: none;
    padding: 18px 24px;
}

.modal-styled .modal-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.modal-styled .modal-body { 
    padding: 24px; 
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.modal-styled .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
    transition: border-color 0.3s ease;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-ghost:hover { 
    background: var(--bg-section-alt); 
    color: var(--text-primary); 
}

.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-success {
    background: var(--gradient-success) !important;
    border: none !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4); }

.btn-warning {
    background: var(--gradient-warning) !important;
    border: none !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-warning:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

.btn-danger {
    background: var(--gradient-danger) !important;
    border: none !important;
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(239,68,68,0.4); }

.upload-zone {
    border: 2px dashed var(--border-dashed);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    background: var(--bg-upload-zone);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--grad-start);
    background: var(--bg-upload-zone-hover);
}

.upload-zone-content { pointer-events: none; }

.upload-icon {
    font-size: 44px;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.upload-zone:hover .upload-icon { color: var(--grad-start); }

.upload-title { 
    font-weight: 600; 
    font-size: 14px; 
    color: var(--text-primary); 
    margin-bottom: 4px; 
    transition: color 0.3s ease;
}

.upload-subtitle { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin: 0; 
    transition: color 0.3s ease;
}

.modal-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: calc(var(--radius) - 2px);
}

.upload-error {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--danger-color);
}

.message-detail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.message-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    min-width: 60px;
    padding-top: 2px;
    transition: color 0.3s ease;
}

.message-detail-value { 
    font-size: 13.5px; 
    color: var(--text-primary); 
    transition: color 0.3s ease;
}

.message-body-box {
    background: var(--bg-section-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 13.5px;
    line-height: 1.7;
    margin-top: 8px;
    color: var(--text-primary);
    white-space: pre-wrap;
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   INVOICE PREVIEW STYLES
   ======================================== */
.invoice-preview {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--grad-start);
    margin-bottom: 20px;
}

.invoice-header-left h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--grad-start);
    margin-bottom: 4px;
}

.invoice-header-left p {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.invoice-header-right {
    text-align: right;
}

.invoice-header-right h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.invoice-table {
    width: 100%;
    margin-bottom: 20px;
}

.invoice-table th {
    background: var(--bg-section-alt);
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.invoice-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.invoice-total-row td {
    font-weight: 700;
    font-size: 16px;
    color: var(--grad-start);
    border-top: 2px solid var(--grad-start);
}

/* Refresh Button Animation */
.refresh-bookings-btn .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-bookings-btn {
    transition: all 0.2s ease;
}

.refresh-bookings-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* ========================================
   PROFESSIONAL INVOICE PDF STYLES
   ======================================== */
.invoice-pdf-container {
    width: 800px;
    background: #ffffff;
    font-family: 'Inter', 'Helvetica', sans-serif;
    color: #1a202c;
    padding: 50px 45px;
}

.invoice-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 3px solid #667eea;
    margin-bottom: 30px;
}

.invoice-pdf-company {
    display: flex;
    align-items: center;
    gap: 14px;
}

.invoice-pdf-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
}

.invoice-pdf-company-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}

.invoice-pdf-company-info p {
    font-size: 11px;
    color: #718096;
    margin: 1px 0;
}

.invoice-pdf-title-section {
    text-align: right;
}

.invoice-pdf-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    letter-spacing: 2px;
}

.invoice-pdf-number {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    margin-top: 4px;
}

.invoice-pdf-dates {
    font-size: 11px;
    color: #718096;
    margin-top: 8px;
}

.invoice-pdf-dates span {
    display: block;
    margin-bottom: 2px;
}

.invoice-pdf-bill-to {
    margin-bottom: 28px;
}

.invoice-pdf-bill-to h5 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096;
    margin: 0 0 6px 0;
}

.invoice-pdf-bill-to .bill-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
}

.invoice-pdf-bill-to .bill-type {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.invoice-pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.invoice-pdf-table thead th {
    background: #667eea;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    border: none;
}

.invoice-pdf-table thead th:last-child {
    text-align: right;
}

.invoice-pdf-table tbody td {
    padding: 13px 16px;
    font-size: 13px;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
}

.invoice-pdf-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
}

.invoice-pdf-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.invoice-pdf-total-row td {
    font-weight: 800 !important;
    font-size: 16px !important;
    color: #667eea !important;
    border-top: 3px solid #667eea !important;
    background: #f8f7ff !important;
    padding: 15px 16px !important;
}

.invoice-pdf-total-row td:first-child {
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invoice-pdf-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.invoice-pdf-footer p {
    font-size: 12px;
    color: #718096;
    margin: 3px 0;
}

.invoice-pdf-footer .thank-you {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 6px;
}

/* ========================================
   CONTRACTOR DETAIL MODAL
   ======================================== */
.contractor-detail-section {
    margin-bottom: 24px;
}

.contractor-detail-section h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--grad-start);
    margin-bottom: 12px;
}

.contractor-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.contractor-info-item {
    padding: 10px;
    background: var(--bg-section-alt);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contractor-info-item .label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.contractor-info-item .value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* ========================================
   WORKER NAMES LIST STYLES
   ======================================== */
.worker-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ============================================================
   BOOKING STATS GRID & REFRESH BUTTON - ADDITIONS
   ============================================================ */

/* Booking Stats Grid */
.booking-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.booking-stats-grid .stat-card {
    background: var(--bg-card);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-stats-grid .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--grad-start);
}

.booking-stats-grid .stat-card:active {
    transform: translateY(0);
}

.booking-stats-grid .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--grad-start);
    transition: color 0.3s ease;
}

.booking-stats-grid .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Refresh Button */
.refresh-bookings-btn {
    transition: all 0.3s ease;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 25px;
    background: transparent;
    border: 1.5px solid var(--grad-start);
    color: var(--grad-start);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.refresh-bookings-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.refresh-bookings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.refresh-bookings-btn .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Section Header with Refresh Button */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header .page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.section-header .page-title i {
    color: var(--grad-start);
}

.section-header .text-muted {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
    transition: color 0.3s ease;
}

/* Filters Row */
.filters-row {
    margin-bottom: 16px;
}

.filters-row .form-control,
.filters-row .form-select {
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 14px;
    transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filters-row .form-control:focus,
.filters-row .form-select:focus {
    border-color: var(--grad-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.filters-row .form-control::placeholder {
    color: var(--text-light);
}

/* Admin Table */
.admin-table {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
    margin-bottom: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.admin-table thead {
    background: var(--bg-section-alt);
}

.admin-table th {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.admin-table td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 13px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: var(--bg-filter-btn-hover);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   RESPONSIVE BOOKINGS
   ============================================================ */
@media (max-width: 768px) {
    .booking-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .booking-stats-grid .stat-card {
        padding: 8px 10px;
    }
    
    .booking-stats-grid .stat-value {
        font-size: 16px;
    }
    
    .booking-stats-grid .stat-label {
        font-size: 8px;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px 8px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .section-header .page-title {
        font-size: 18px;
    }
    
    .refresh-bookings-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .booking-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row .row {
        gap: 6px;
    }
    
    .filters-row .col-md-3,
    .filters-row .col-md-2 {
        padding: 0 4px;
    }
}

.worker-name-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--grad-start);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container { z-index: 9999; }

.toast-notification {
    background: var(--bg-toast);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-toast);
    border-left: 3px solid;
    animation: slideInRight 0.3s ease-out;
    font-size: 13px;
    min-width: 200px;
    max-width: 300px;
    transition: background-color 0.3s ease;
}

.badge {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ========================================
   DARK MODE BOOTSTRAP OVERRIDES
   ======================================== */
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--grad-start);
    border-color: var(--grad-start);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-section-alt) !important;
}

[data-theme="dark"] .badge.bg-primary {
    background-color: var(--grad-start) !important;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(102,126,234,0.08);
}

[data-theme="dark"] .invoice-pdf-container,
[data-theme="dark"] .application-pdf-container {
    background: #ffffff;
    color: #1a202c;
}

/* Dark mode adjustments for payment status */
[data-theme="dark"] .payment-status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .payment-status-unpaid {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

[data-theme="dark"] .payment-status-partial {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .payment-status-pending {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Dark mode adjustments for rejection modal */
[data-theme="dark"] .rejection-warning-box {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .rejection-reason-display {
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .rejection-quick-btn {
    background: var(--bg-filter-btn);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .admin-sidebar { width: 220px; }
    .sidebar-menu li { padding: 8px 12px; margin: 2px 8px; font-size: 13px; }
    .sidebar-menu li i { font-size: 16px; width: 20px; }
    .logout-dialog { padding: 30px 24px; }
    .brand-logo { width: 30px; height: 30px; }
    .invoice-pdf-container { width: 100%; padding: 30px 25px; }
    .applications-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .app-detail-grid { grid-template-columns: 1fr; }
    .app-detail-header { flex-direction: column; align-items: center; text-align: center; }
    .app-info-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .app-profile-banner { flex-direction: column; text-align: center; }
    .app-profile-meta-row { justify-content: center; }
    .theme-toggle-btn { width: 34px; height: 34px; }
    .theme-toggle-btn i { font-size: 0.9rem; }
    
    .payment-status-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .payments-summary {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .login-card { padding: 24px 20px; max-width: 100%; }
    .logo-icon { width: 50px; height: 50px; }
    .logo-icon i { font-size: 24px; }
    .login-logo-img { width: 100%; height: 100%; }
    .login-header h3 { font-size: 20px; }
    .otp-input { width: 40px; height: 45px; font-size: 18px; }
    .otp-input-group { gap: 6px; }

    .dashboard-wrapper { flex-direction: column; }

    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        min-height: auto;
        overflow-x: auto;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        padding: 8px 12px;
        overflow-x: auto;
        white-space: nowrap;
        gap: 4px;
        scrollbar-width: none;
    }
    .sidebar-menu::-webkit-scrollbar { display: none; }

    .sidebar-menu li {
        display: inline-flex;
        margin: 0;
        padding: 8px 12px;
        flex-shrink: 0;
    }

    .sidebar-menu .logout-item { margin-top: 0; }

    .admin-content { padding: 16px; }

    .dashboard-nav { height: auto; padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
    .nav-user { flex-wrap: wrap; justify-content: flex-end; }
    .user-info span { display: none; }
    .user-info { padding: 6px 10px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 24px; }
    .stat-label { font-size: 12px; }

    .logout-dialog { padding: 24px 18px; }
    .logout-icon-wrapper { width: 60px; height: 60px; }
    .logout-icon-main { font-size: 28px; }
    .logout-dialog h3 { font-size: 18px; }
    .btn-logout-cancel, .btn-logout-confirm { padding: 10px 18px; font-size: 13px; }
    
    .brand-logo { width: 28px; height: 28px; }
    
    .applications-grid { grid-template-columns: 1fr; }
    .window-status-card { flex-direction: column; text-align: center; }
    .window-status-toggle { margin-top: 8px; }
    .app-detail-grid { grid-template-columns: 1fr; }
    .app-info-grid { grid-template-columns: 1fr; }
    .app-document-item { flex-direction: column; align-items: flex-start; }
    .app-document-actions { width: 100%; justify-content: flex-end; }
    .app-profile-banner { padding: 20px 16px; }
    .app-detail-content-body { padding: 16px; }
    .app-detail-modal-footer { padding: 12px 16px; }
    
    .theme-toggle-btn { width: 30px; height: 30px; }
    .theme-toggle-btn i { font-size: 0.85rem; }
    
    .payment-status-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .payments-summary {
        flex-direction: column;
    }
    
    .payment-summary-card {
        min-width: auto;
    }
    
    .rejection-modal-body {
        padding: 20px;
    }
    
    .rejection-quick-buttons {
        gap: 6px;
    }
    
    .rejection-quick-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .rejection-warning-box {
        padding: 12px 14px;
    }
    
    .rejection-warning-box i {
        font-size: 18px;
    }
    
    .rejection-modal-header {
        padding: 16px 20px;
    }
    
    .rejection-modal-footer {
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .login-card { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .otp-input { width: 38px; height: 42px; font-size: 16px; }
    .logout-actions { flex-direction: column; }
    .btn-logout-cancel, .btn-logout-confirm { width: 100%; justify-content: center; }
    
    .report-meta-row {
        flex-direction: column;
    }
    
    .contractor-info-grid {
        grid-template-columns: 1fr;
    }
    
    .app-documents-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .app-info-grid { grid-template-columns: 1fr; }
    .app-document-actions { flex-direction: column; width: 100%; }
    .app-doc-action-btn { width: 100%; justify-content: center; }
    
    .payment-dropdown {
        min-width: 150px;
    }
    
    .payments-history-table th,
    .payments-history-table td {
        font-size: 11px;
        padding: 8px;
    }
}

@media (max-width: 400px) {
    .otp-input { width: 35px; height: 40px; font-size: 14px; }
    .sidebar-menu li span { font-size: 12px; }
    .sidebar-menu li i { font-size: 14px; }
    .sidebar-menu li { padding: 6px 10px; }
    .brand-logo { width: 24px; height: 24px; }
    .app-documents-grid {
        grid-template-columns: 1fr;
    }
    .theme-toggle-btn { width: 28px; height: 28px; }
    .theme-toggle-btn i { font-size: 0.8rem; }
}

/* Status color coding for assignment section */
.status-badge-assigned {
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-not-assigned {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-in-progress {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-just-started {
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-completed {
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Staff type badges */
.staff-type-supervisor {
    color: #1f2937;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}

.staff-type-general-supervisor {
    color: #7c3aed;
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}

.staff-type-normal {
    color: #db2777;
    background: #fce7f3;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}

/* Staff type badges */
.staff-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.staff-type-normal {
    background: #e3f2fd;
    color: #1565c0;
}

.staff-type-supervisor {
    background: #fff3e0;
    color: #e65100;
}

.staff-type-general_supervisor {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Supervisor status */
.supervisor-assigned {
    color: #27ae60;
    font-size: 13px;
    font-weight: 500;
}

.supervisor-warning {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
}

/* Staff avatar */
.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.staff-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Action buttons */
.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.action-btn-edit {
    background: #e3f2fd;
    color: #1565c0;
}

.action-btn-edit:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

.action-btn-delete {
    background: #fce4ec;
    color: #c62828;
}

.action-btn-delete:hover {
    background: #f8bbd0;
    transform: scale(1.05);
}

/* Table column alignment */
#staffTable td,
#staffTable th {
    vertical-align: middle;
}

#staffTable .text-center {
    text-align: center;
}