/* === Page Header === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.page-header-content h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.page-header-content p {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    margin-bottom: 0;
}

.page-header-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* === Breadcrumbs === */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
}

.breadcrumbs-item {
    color: var(--color-muted);
    text-decoration: none;
}

.breadcrumbs-item:hover {
    color: var(--color-primary);
}

.breadcrumbs-separator {
    color: var(--color-border);
}

.breadcrumbs-current {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* === Section Header === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    margin-top: var(--space-6);
}

.section-header h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

/* === Dashboard Grid === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.dashboard-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === Stat Card === */
.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: box-shadow var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-label {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    font-weight: var(--font-weight-medium);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
}

.stat-card-icon.primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.stat-card-icon.success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.stat-card-icon.warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.stat-card-icon.danger {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.stat-card-icon.info {
    background: var(--color-info-light);
    color: var(--color-info);
}

.stat-card-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
}

.stat-card-value.text-success { color: var(--color-success); }
.stat-card-value.text-danger { color: var(--color-danger); }
.stat-card-value.text-warning { color: var(--color-warning); }
.stat-card-value.text-primary { color: var(--color-primary); }

.stat-card-footer {
    margin-top: var(--space-1);
}

.stat-card-footer a {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

/* === Dashboard Section === */
.dashboard-section {
    margin-bottom: var(--space-6);
}

.dashboard-section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-border-light);
}

/* === Detail Card === */
.detail-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.detail-row {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row-label {
    min-width: 140px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-muted);
    flex-shrink: 0;
}

.detail-row-value {
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

/* === Schedule Grid === */
.schedule-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.schedule-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--color-border-light);
    padding: var(--space-3) var(--space-4);
    display: flex;
    gap: var(--space-4);
    align-items: center;
    min-width: 200px;
}

.schedule-day {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.schedule-time {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* === Action Links === */
.action-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-5);
}

/* === Attendance Summary === */
.attendance-summary {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-5);
}

.summary-item {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.summary-item strong {
    color: var(--color-text);
}

/* === Card Actions === */
.card-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .dashboard-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .btn {
        flex: 1;
    }

    .dashboard-grid,
    .dashboard-grid-2,
    .dashboard-grid-3,
    .dashboard-grid-4 {
        grid-template-columns: 1fr;
    }

    .detail-row {
        flex-direction: column;
        gap: var(--space-1);
    }

    .detail-row-label {
        min-width: auto;
    }

    .attendance-summary {
        flex-direction: column;
        gap: var(--space-2);
    }

    .schedule-grid {
        flex-direction: column;
    }

    .schedule-item {
        min-width: auto;
        width: 100%;
    }
}
