/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.brand-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.navbar-title {
    font-weight: 600;
    color: var(--text);
}

.navbar-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.header-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
}

.header-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    min-width: 200px;
}

.stat-card.stat-primary {
    background: var(--secondary);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toolbar h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Table */
.table-container {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #F9FAFB;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.data-table tbody tr:hover {
    background: #F9FAFB;
}

/* Employee Cell */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.employee-avatar.avatar-yellow { background: #F59E0B; }
.employee-avatar.avatar-gray { background: #6B7280; }

.employee-info h4 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.125rem;
}

.employee-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Date Pills */
.date-pills {
    display: flex;
    gap: 0.375rem;
}

.date-pill {
    padding: 0.25rem 0.5rem;
    background: #F3F4F6;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
}

/* Late Badge */
.late-badge {
    color: var(--danger);
    font-weight: 600;
}

.late-badge.on-time {
    color: var(--success);
}

/* Status Badge */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.received {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-page {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    min-width: 36px;
    transition: all 0.2s;
}

.btn-page:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-page.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Metric Card */
.metric-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.metric-icon {
    font-size: 2.5rem;
}

.metric-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-content p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.metric-value {
    text-align: center;
}

.percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.trend {
    font-size: 0.875rem;
    font-weight: 600;
}

.trend.positive {
    color: var(--success);
}

.progress-bar {
    grid-column: 1 / -1;
    height: 8px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-section {
        flex-direction: column;
    }
    
    .header-stats {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .metric-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}