/* InVin Admin panel — Phase 5 */

body.app-shell-enabled #adminSection:not(.hidden) {
    margin-top: 0;
}

body.app-shell-enabled #adminSection .admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    border-bottom: none;
    padding-bottom: 0;
}

body.app-shell-enabled #adminSection .tab-btn,
body.app-shell-enabled #adminSection [data-admin-tab] {
    flex: 0 1 auto;
    padding: 8px 16px;
    border: 1px solid var(--app-border, #e4e4e7);
    border-radius: 8px;
    background: var(--app-bg, #f4f5f7);
    color: var(--app-muted, #71717a);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border-bottom: 1px solid var(--app-border, #e4e4e7);
}

body.app-shell-enabled #adminSection .tab-btn:hover,
body.app-shell-enabled #adminSection [data-admin-tab]:hover {
    color: var(--app-text, #111827);
    border-color: var(--app-accent, #667eea);
}

body.app-shell-enabled #adminSection .tab-btn.active,
body.app-shell-enabled #adminSection [data-admin-tab].active {
    background: var(--app-accent-soft, #eef2ff);
    color: var(--app-accent, #667eea);
    border-color: var(--app-accent, #667eea);
}

body.app-shell-enabled #adminSection .admin-tab-content {
    display: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

body.app-shell-enabled #adminSection .admin-tab-content.active {
    display: block;
}

body.app-shell-enabled #adminSection .admin-section-card {
    border: 1px solid var(--app-border, #e4e4e7);
    box-shadow: none;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--app-bg, #f4f5f7);
    border: 1px solid var(--app-border, #e4e4e7);
    border-radius: 8px;
}

.admin-pagination-info {
    font-size: 0.85rem;
    color: var(--app-muted, #71717a);
}

.admin-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-pagination-page {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text, #111827);
    padding: 0 4px;
}

.admin-page-size-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--app-muted, #71717a);
}

.admin-page-size {
    padding: 6px 8px;
    border: 1px solid var(--app-border, #e4e4e7);
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
}

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

@media (max-width: 768px) {
    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-pagination-controls {
        justify-content: center;
    }
}
