/* ============================================
   Zikukim v2 — Premium Design System
   Modern, Animated, Mobile-First
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --sidebar-width: 260px;
    --sidebar-bg: linear-gradient(180deg, #0a1628 0%, #0f2038 50%, #0d1a30 100%);
    --sidebar-hover: rgba(255,255,255,0.08);
    --sidebar-active: #38bdf8;
    --sidebar-text: #7da5c4;
    --sidebar-text-active: #ffffff;
    --topbar-height: 64px;
    --body-bg: #f4f7fa;
    --card-bg: #ffffff;
    --text-primary: #1a2332;
    --text-secondary: #5a6a7e;
    --text-muted: #8b9ab0;
    --accent: #38bdf8;
    --accent-light: #7dd3fc;
    --accent-hover: #0ea5e9;
    --accent-glow: rgba(56,189,248,0.25);
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #38bdf8;
    --info-light: #e0f2fe;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   Animations & Keyframes
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(56,189,248,0.1); }
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); }
    50% { transform: scale(1.2) rotate(-45deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: var(--progress, 100%); }
}

/* Animated entry classes */
.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-in-fast {
    animation: fadeInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-scale {
    animation: scaleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-slide-right {
    animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Staggered delays for rows */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ============================================
   App Layout
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(56,189,248,0.06) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(125,211,252,0.04) 0%, transparent 40%);
    pointer-events: none;
    animation: float 15s ease-in-out infinite alternate;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    position: relative;
}

.logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg {
    filter: drop-shadow(0 0 8px rgba(56,189,248,0.4));
    animation: float 4s ease-in-out infinite;
}

/* Sparkles around logo */
.logo-sparkles { position: absolute; inset: -8px; pointer-events: none; }
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7dd3fc;
    opacity: 0;
}
@keyframes sparkle-pop {
    0% { opacity: 0; transform: scale(0) translate(0,0); }
    30% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}
.sparkle.s1 { top: 0; left: 50%; animation: sparkle-pop 2.4s ease-in-out 0s infinite; }
.sparkle.s2 { top: 30%; right: -2px; animation: sparkle-pop 2.4s ease-in-out 0.5s infinite; width: 3px; height: 3px; background: #38bdf8; }
.sparkle.s3 { bottom: 4px; right: 10%; animation: sparkle-pop 2.4s ease-in-out 1s infinite; width: 3px; height: 3px; }
.sparkle.s4 { bottom: 20%; left: -3px; animation: sparkle-pop 2.4s ease-in-out 1.5s infinite; width: 2px; height: 2px; background: #bae6fd; }
.sparkle.s5 { top: 15%; left: 5px; animation: sparkle-pop 2.4s ease-in-out 2s infinite; width: 2px; height: 2px; background: #e0f2fe; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-url {
    font-size: 10px;
    font-weight: 500;
    color: #4a8eb8;
    letter-spacing: 0.04em;
}

.sidebar-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--sidebar-text);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    position: relative;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(56,189,248,0.05));
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: var(--radius-xs);
}

.sidebar-nav .nav-link:hover {
    color: #fff;
}

.sidebar-nav .nav-link:hover::before {
    opacity: 1;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--sidebar-active), #7dd3fc);
    color: #fff;
    box-shadow: 0 4px 12px rgba(56,189,248,0.35);
}

.sidebar-nav .nav-link.active::before {
    display: none;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.sidebar-nav .nav-link span {
    position: relative;
    z-index: 1;
}

.nav-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(148,163,184,0.5);
    padding: 20px 16px 8px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #7dd3fc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(56,189,248,0.3);
}

.user-details .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.user-details .user-role {
    font-size: 11px;
    color: var(--sidebar-text);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
}

.top-bar {
    height: var(--topbar-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229,231,235,0.8);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.4s ease both;
}

.top-bar-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    color: var(--text-primary);
}

.top-bar-actions {
    font-size: 13px;
    color: var(--text-secondary);
}

.hamburger {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
}

.hamburger:hover {
    background: var(--border-light);
}

.content-area {
    padding: 28px;
    max-width: 100%;
    animation: fadeIn 0.3s ease both;
}

/* ============================================
   Stat Cards
   ============================================ */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(56,189,248,0.2);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: var(--transition-spring);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card .stat-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--info); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--success); }
.stat-card .stat-icon.yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--warning); }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: var(--accent); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: var(--danger); }

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    animation: countUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Stagger stat cards */
.row > [class*="col"]:nth-child(1) .stat-card { animation-delay: 0.05s; }
.row > [class*="col"]:nth-child(2) .stat-card { animation-delay: 0.1s; }
.row > [class*="col"]:nth-child(3) .stat-card { animation-delay: 0.15s; }
.row > [class*="col"]:nth-child(4) .stat-card { animation-delay: 0.2s; }

/* ============================================
   Tables
   ============================================ */
.table-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.table-card .card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #fff, #fafbfc);
}

.table-card .card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.table {
    margin-bottom: 0;
    font-size: 13px;
}

.table th {
    background: #f8f9fb;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    padding: 14px 16px;
    white-space: nowrap;
}

.table th a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}

.table th a:hover {
    color: var(--accent);
}

.table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: var(--border-light);
    transition: background 0.15s;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(56,189,248,0.03);
}

tr.verify-row:hover td {
    background: rgba(56,189,248,0.06) !important;
}

.table td .dropdown-menu {
    position: fixed !important;
    z-index: 9999;
}

/* ============================================
   Forms
   ============================================ */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(56,189,248,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #4338ca);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(56,189,248,0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    border-color: var(--success);
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,0.4);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    border-color: var(--warning);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    border-color: var(--danger);
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239,68,68,0.4);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Outline button improvements */
.btn-outline-primary { border-color: var(--accent); color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-outline-secondary { border-color: var(--border); color: var(--text-secondary); }
.btn-outline-secondary:hover { background: var(--border-light); color: var(--text-primary); }

/* ============================================
   Badges
   ============================================ */
.badge {
    font-weight: 600;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* ============================================
   Worker Task Card — Premium Redesign
   ============================================ */
.task-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.task-card:hover {
    box-shadow: var(--shadow-lg);
}

.task-card-inner {
    padding: 24px;
}

.task-card .company-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.task-card .task-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-card .task-meta i {
    width: 16px;
    color: var(--text-muted);
}

.task-card .review-text {
    background: linear-gradient(135deg, #f8f9fb, #f1f3f9);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    margin: 16px 0;
    border: 1px solid var(--border);
    max-height: 140px;
    overflow-y: auto;
    color: var(--text-primary);
    position: relative;
}

.task-card .task-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

/* Task progress indicator */
.task-progress-bar {
    height: 4px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
}

.task-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    animation: progressBar 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Next task badge */
.next-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: float 3s ease-in-out infinite;
}

.next-task-badge i {
    font-size: 10px;
}

/* Done button special style */
.btn-done {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(16,185,129,0.35);
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-done:hover {
    box-shadow: 0 6px 24px rgba(16,185,129,0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-done:active {
    transform: scale(0.97);
}

/* ============================================
   Login Page
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4338ca 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(56,189,248,0.15);
    position: relative;
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card h1 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

/* ============================================
   Charts
   ============================================ */
.chart-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.chart-card h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ============================================
   Modals
   ============================================ */
.modal-backdrop { z-index: 1040 !important; }
.modal { z-index: 1050 !important; }

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    background: linear-gradient(180deg, #fff, #fafbfc);
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    background: #fafbfc;
}

.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
    font-size: 13px;
    animation: fadeInDown 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: var(--shadow);
}

.alert-success { background: var(--success-light); color: #065f46; }
.alert-warning { background: var(--warning-light); color: #92400e; }
.alert-danger  { background: var(--danger-light);  color: #991b1b; }
.alert-info    { background: var(--info-light);    color: #1e40af; }

/* ============================================
   Map Links
   ============================================ */
.map-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-link-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.map-link-text {
    font-size: 12px;
    color: var(--info);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.map-link-text:hover {
    text-decoration: underline;
    color: var(--accent);
}

.map-copy-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.map-copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.05);
}

.map-preview-popup {
    display: none;
    position: fixed;
    width: 450px;
    height: 320px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    overflow: hidden;
    border: 2px solid var(--border);
    pointer-events: none;
}

.map-preview-popup iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-secondary);
    animation: fadeIn 0.5s both;
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 320px;
    margin-inline: auto;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.cursor-pointer { cursor: pointer; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================
   Worker Rate Input
   ============================================ */
.rate-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rate-input input {
    width: 80px;
    text-align: center;
}

/* ============================================
   Sidebar Overlay
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    animation: fadeIn 0.3s both;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 99999;
    min-width: 220px;
    text-align: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Worker-Specific Mobile Styles
   ============================================ */
.worker-greeting {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.worker-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Mini stat pills for mobile */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-pill .pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Swipe card hint */
.swipe-hint {
    display: none;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px;
    animation: pulse 2s infinite;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-bar {
        padding: 0 16px;
    }

    .content-area {
        padding: 20px 16px;
    }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 767.98px) {
    :root {
        --radius: 14px;
    }

    .content-area {
        padding: 16px 12px;
    }

    .top-bar {
        height: 56px;
        padding: 0 14px;
    }

    .top-bar-title {
        font-size: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .stat-card .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 12px;
    }

    .table-card .card-header {
        padding: 14px 16px;
    }

    .table th, .table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .form-card {
        padding: 20px 16px;
    }

    .task-card-inner {
        padding: 18px;
    }

    .task-card .company-name {
        font-size: 16px;
    }

    .task-card .review-text {
        font-size: 13px;
        padding: 12px;
        max-height: 120px;
    }

    .btn-done {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Hide map preview on mobile */
    .map-link-wrap .map-preview-popup {
        display: none !important;
    }

    .swipe-hint {
        display: block;
    }

    .modal-dialog {
        margin: 8px;
    }

    .modal-content {
        border-radius: var(--radius);
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
}

/* ============================================
   Responsive — Small Mobile
   ============================================ */
@media (max-width: 375px) {
    .content-area {
        padding: 12px 8px;
    }

    .stat-card .stat-value {
        font-size: 18px;
    }

    .stat-card .stat-label {
        font-size: 11px;
    }

    .btn-done {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .sidebar, .top-bar, .sidebar-overlay { display: none !important; }
    .main-content { margin: 0 !important; }
    .content-area { padding: 0 !important; }
    .stat-card, .task-card, .table-card { box-shadow: none !important; border: 1px solid #ddd !important; }
    * { animation: none !important; }
}

/* ============================================
   Page Transitions
   ============================================ */
.page-enter {
    animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
