/**
 * Admin Layout Components
 * 
 * Provides consistent layout structure for admin pages
 * Based on existing design system tokens and OKLCH color palette
 */

/* Admin Page Container */
.admin-page {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Admin Header */
.admin-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) var(--space-lg);
    box-shadow: 0 1px 3px oklch(0% 0 0 / 0.1);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.admin-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.admin-header__subtitle {
    color: var(--muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.admin-header__actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

/* Admin Main Content */
.admin-main {
    padding: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* Admin Breadcrumbs */
.admin-breadcrumbs {
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--muted);
}

.admin-breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.admin-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Admin Grid System */
.admin-grid {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.admin-grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-grid--3-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.admin-grid--4-col {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .admin-header__actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-main {
        padding: var(--space-md);
    }
    
    .admin-grid--2-col,
    .admin-grid--3-col,
    .admin-grid--4-col {
        grid-template-columns: 1fr;
    }
}