:root {
    --primary: #3b82f6;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #0f172a;
    --light-gray: #f1f5f9;
    --border: #e2e8f0;
}

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

body {
    font-family: system-ui, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    padding: 12px;
    line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; }

h1 { text-align: center; margin: 0.8rem 0 1.5rem; font-size: 1.9rem; }

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 1.4rem;
    margin-bottom: 1.6rem;
}

h2 { margin-bottom: 1rem; font-size: 1.35rem; }

.flex-row, .action-buttons, .export-row, .week-selector, .month-selector, .add-employee, .employee-selector, .controls, .marking-time, .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
}

.btn {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn:hover { opacity: 0.92; }

.btn-success { background: var(--success); color: white; }
.btn-danger  { background: var(--danger);  color: white; }
.btn-primary { background: var(--primary); color: white; }
.btn-gray { background: #6b7280; color: white; }
.btn-outline { background: transparent; border: 2px solid #94a3b8; color: #475569; }

.small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.table-container { overflow-x: auto; margin: 1rem 0; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 580px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th { background: var(--dark); color: white; }

.export-row { justify-content: flex-end; }

.date-display {
    margin-top: 0.5rem;
    font-size: 1.05rem;
    color: #334155;
}

.add-employee input, .employee-selector select, .week-selector select, .month-selector select {
    flex: 1;
    min-width: 220px;
    padding: 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 8px;
}

.bulk-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
}

.bulk-item {
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 4px 0;
    cursor: pointer;
}

.bulk-item.selected {
    background: #e0f2fe;
    border-color: #60a5fa;
}

.search-box {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

@media (max-width: 720px) {
    .action-buttons, .export-row, .week-selector, .month-selector, .add-employee, .controls, .marking-time, .action-row {
        flex-direction: column;
    }
    .btn { width: 100%; }
}.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.form-group {
    margin: 1rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}