@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050508;
    --bg-card: rgba(15, 15, 25, 0.8);
    --bg-hover: rgba(30, 30, 50, 0.6);
    --border: rgba(99, 102, 241, 0.15);
    --border-glow: rgba(99, 102, 241, 0.4);
    --text: #e8e8f0;
    --text-muted: #7a7a95;
    --accent: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============ ANIMATED BACKGROUND ============ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
                radial-gradient(ellipse at 0% 100%, rgba(239, 68, 68, 0.08) 0%, transparent 40%),
                var(--bg);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 20%);
    animation: bgFloat 30s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.15);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.12);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(245, 158, 11, 0.1);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

/* Grid pattern overlay */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ============ LOGIN SCREEN ============ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    animation: loginAppear 0.6s ease-out;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 20px;
}

/* ============ USER INFO ============ */
.user-info {
    font-size: 13px;
    padding: 12px 15px;
    background: var(--bg-hover);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.user-info strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.user-info small {
    color: var(--text-muted);
}

/* ============ APP LAYOUT ============ */
.app {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 240px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8)); }
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--accent);
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

/* ============ MAIN CONTENT ============ */
.main {
    flex: 1;
    margin-left: 240px;
    position: relative;
}

/* ============ HEADER ============ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header span {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

#searchInput {
    padding: 12px 18px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    width: 240px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

/* ============ BUTTONS ============ */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--border-glow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============ CONTENT ============ */
.content {
    padding: 30px 35px;
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: viewFadeIn 0.5s ease-out;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ STATS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.stat-info {
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 2px;
}

/* ============ DASHBOARD GRID ============ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardAppear 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.card h3 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ TAG BARS ============ */
.tag-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tag-bar-label {
    width: 90px;
    font-size: 13px;
    color: var(--text-muted);
}

.tag-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.tag-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tag-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tag-bar-fill.fat { background: linear-gradient(90deg, #ef4444, #f87171); }
.tag-bar-fill.poor { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.tag-bar-fill.medium { background: var(--gradient-1); }
.tag-bar-fill.salary { background: linear-gradient(90deg, #10b981, #34d399); }

.tag-bar-value {
    width: 35px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============ WORKERS PLAN CARDS ============ */
.worker-plan-card {
    background: var(--bg-hover);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.worker-plan-card.clickable {
    cursor: pointer;
}

.worker-plan-card.clickable:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-color: var(--border-glow);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.worker-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.worker-plan-name {
    font-weight: 600;
    font-size: 14px;
}

.worker-plan-week {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
}

.worker-plan-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.worker-plan-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.worker-plan-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.worker-plan-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.worker-plan-fill.empty {
    background: linear-gradient(90deg, #4b5563, #6b7280);
    width: 3% !important;
    opacity: 0.5;
}

.worker-plan-fill.progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.worker-plan-fill.done {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.worker-plan-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.worker-plan-count.empty {
    color: var(--text-muted);
}

.worker-plan-count.progress {
    color: var(--warning);
}

.worker-plan-count.done {
    color: var(--success);
}

.worker-plan-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.worker-plan-footer span:last-child {
    font-weight: 500;
}

/* Legacy worker item styles */
.worker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-hover);
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.worker-item.clickable {
    cursor: pointer;
}

.worker-item.clickable:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: var(--border-glow);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.15);
}

.worker-item.clickable:hover span {
    color: #fff;
}

.worker-item-count {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    font-size: 13px;
}

.worker-item.clickable:hover .worker-item-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ============ CHECK ITEMS ============ */
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-hover);
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid;
    border-image: var(--gradient-2) 1;
    transition: all 0.3s ease;
}

.check-item:hover {
    transform: translateX(5px);
}

.check-item.clickable {
    cursor: pointer;
}

.check-item.clickable:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.check-item-when {
    font-size: 11px;
    font-weight: 600;
    min-width: 75px;
}

.check-item-log {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
}

.check-item-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

.check-item-worker {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: auto;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ============ FILTERS ============ */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.filters select {
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* ============ TABLE ============ */
.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th,
.logs-table td {
    padding: 16px 18px;
    text-align: left;
}

.logs-table th {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logs-table tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.logs-table tbody tr:hover {
    background: var(--bg-hover);
}

.logs-table td {
    font-size: 14px;
}

.cell-mono {
    font-family: 'JetBrains Mono', monospace;
}

.cell-muted {
    color: var(--text-muted);
}

.cell-owner {
    font-size: 13px;
}

.owner-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* ============ TAG BADGE ============ */
.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tag-badge.fat { 
    background: linear-gradient(135deg, rgba(239,68,68,0.2) 0%, rgba(248,113,113,0.1) 100%); 
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}
.tag-badge.poor { 
    background: rgba(107,107,128,0.15); 
    color: var(--text-muted);
    border: 1px solid rgba(107,107,128,0.3);
}
.tag-badge.medium { 
    background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(6,182,212,0.1) 100%); 
    color: var(--accent);
    border: 1px solid rgba(139,92,246,0.3);
}
.tag-badge.salary { 
    background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(52,211,153,0.1) 100%); 
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.3);
}

/* ============ ACTIONS ============ */
.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-hover);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.action-btn:hover {
    transform: scale(1.15);
    border-color: var(--border-glow);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* ============ WORKERS GRID ============ */
.workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.worker-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.worker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.worker-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.worker-card:hover::before {
    transform: scaleX(1);
}

.worker-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.worker-card-name {
    font-size: 18px;
    font-weight: 700;
}

.worker-card-stats {
    font-size: 36px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.worker-card-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab:hover {
    background: var(--bg-hover);
    border-color: var(--border-glow);
}

.tab.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* ============ REMINDERS GRID ============ */
.reminders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.reminder-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    border-left: 5px solid transparent;
    border-image: var(--gradient-2) 1;
    transition: all 0.3s ease;
}

.reminder-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.reminder-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reminder-card-pin {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 15px;
}

.reminder-card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--warning);
    background: rgba(245,158,11,0.15);
    padding: 5px 12px;
    border-radius: 8px;
}

.reminder-card-info {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
    animation: modalOverlayIn 0.3s ease;
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-hover);
    border-radius: 10px;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

#logForm, #workerForm {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* ============ LOG DETAILS ============ */
.log-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.log-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 10px;
}

.log-details-label {
    color: var(--text-muted);
    font-size: 13px;
}

.log-details-value {
    font-weight: 600;
    font-size: 14px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .stats-grid, .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main {
        margin-left: 0;
    }
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .header-right {
        width: 100%;
        flex-wrap: wrap;
    }
    #searchInput {
        flex: 1;
        min-width: 200px;
    }
    .content {
        padding: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
