/**
 * Admin Panel Components
 * Tabs, Modals, and other admin-specific styles
 */

/* ============================================
   TABS - Modern tab navigation
   ============================================ */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    width: fit-content;
}

.tab-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Additional Badges
   ============================================ */
.badge-muted {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-accent {
    background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%);
    color: #0E7490;
}

/* ============================================
   MODAL - Admin modal dialogs
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Active Tab Style (used in some pages) */
.active-tab {
    background-color: var(--white) !important;
    box-shadow: var(--shadow-sm);
    color: var(--primary) !important;
}