:root {
    --primary: #2563eb;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sidebar {
    min-height: 100vh;
    background: #1e293b;
    color: #e2e8f0;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background: #f1f5f9;
}

.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s;
}

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.table-glass th {
    background: #1e293b;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 10px 12px;
}

.table-glass td {
    padding: 8px 12px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-glass tbody tr:hover {
    background: #e0e7ff;
}

.badge-zavrseno {
    background: #16a34a;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-ceka {
    background: #f59e0b;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.paleta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-width: 300px;
}

.paleta-slot {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.paleta-slot:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.paleta-slot.occupied {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    cursor: not-allowed;
}

.paleta-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.firma-group {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.firma-header {
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.firma-header:hover {
    background: #334155;
}

.progress-ring {
    width: 40px;
    height: 40px;
}

.btn-zavrsi {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .paleta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    background: #1e293b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

/* Checkbox large for mobile workers */
.form-check-input.check-lg {
    width: 1.5em;
    height: 1.5em;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar.show + .overlay {
        display: block;
    }
}
