/* ============================================================================
   ADMIN PANEL - CONSISTENT WITH PUBLIC THEME
   Dark Gradient with Glassmorphism
   ============================================================================ */

/* Override base tokens for admin (inherits from app.css) */
:root {
    --admin-bg: #0a0a0f;
    --admin-bg-card: rgba(20, 20, 30, 0.8);
    --admin-glass: rgba(255, 255, 255, 0.03);
    --admin-glass-hover: rgba(255, 255, 255, 0.06);
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-border-hover: rgba(139, 92, 246, 0.4);
    --admin-text: #F8FAFC;
    --admin-text-secondary: rgba(248, 250, 252, 0.7);
    --admin-text-muted: rgba(248, 250, 252, 0.4);
    --admin-gradient: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    --admin-glow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   ADMIN WRAPPER
   -------------------------------------------------------------------------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
    position: relative;
    overflow: hidden;
}

/* Animated blob background */
.admin-wrapper::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.2) 0%,
            rgba(6, 182, 212, 0.1) 100%);
    filter: blur(80px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: adminBlob 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.admin-wrapper::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: linear-gradient(135deg,
            rgba(244, 114, 182, 0.1) 0%,
            rgba(139, 92, 246, 0.15) 100%);
    filter: blur(60px);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: adminBlob2 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes adminBlob {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes adminBlob2 {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-180deg);
    }
}

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--admin-border);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--admin-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-brand svg {
    padding: 10px;
    background: var(--admin-gradient);
    border-radius: var(--radius-xl);
    color: white !important;
    -webkit-text-fill-color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.sidebar-brand:hover {
    transform: translateX(5px);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.nav-section {
    margin-bottom: var(--space-6);
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-3);
    padding: 0 var(--space-3);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: var(--space-1);
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--admin-text-secondary);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-item-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--admin-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.nav-item-link:hover {
    background: var(--admin-glass);
    color: var(--admin-text);
    transform: translateX(8px);
}

.nav-item-link:hover svg {
    opacity: 1;
    color: #8B5CF6;
}

.nav-item-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
    color: var(--admin-text);
}

.nav-item-link.active::before {
    transform: scaleY(1);
}

.nav-item-link.active svg {
    opacity: 1;
    color: #8B5CF6;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--admin-border);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--admin-glass);
    border: 1px solid var(--admin-border);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: var(--admin-glass-hover);
    transform: translateY(-2px);
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: var(--admin-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--admin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

/* Logout button */
.sidebar-footer .btn {
    width: 100%;
    margin-top: var(--space-3);
    background: var(--admin-glass);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
}

.sidebar-footer .btn:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #F87171;
}

/* --------------------------------------------------------------------------
   MAIN CONTENT
   -------------------------------------------------------------------------- */
.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.admin-header {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 15, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--admin-border);
    padding: var(--space-5) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: var(--admin-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-content {
    padding: var(--space-6);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Sidebar */
.sidebar-toggle {
    display: none;
    background: var(--admin-glass);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    cursor: pointer;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--admin-glass-hover);
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 999;
    }
}

/* --------------------------------------------------------------------------
   STAT CARDS
   -------------------------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--admin-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--admin-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--admin-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(139, 92, 246, 0.1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.stat-icon.cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.stat-icon.pink {
    background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
    box-shadow: 0 8px 20px rgba(244, 114, 182, 0.4);
}

.stat-icon.green {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.4);
}

.stat-icon svg {
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   ADMIN TABLES
   -------------------------------------------------------------------------- */
.admin-table-wrapper {
    background: var(--admin-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.admin-table-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    background: rgba(0, 0, 0, 0.2);
}

.admin-table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--admin-text);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: var(--space-4) var(--space-5);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--admin-border);
    font-size: 0.9375rem;
    color: var(--admin-text-secondary);
    transition: all 0.3s ease;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.admin-table tbody tr:hover td {
    color: var(--admin-text);
}

.table-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-glass);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #A78BFA;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.btn-icon.danger:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    color: #F87171;
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.2);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.published,
.status-badge.completed {
    background: rgba(52, 211, 153, 0.2);
    color: #34D399;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.status-badge.draft {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.status-badge.ongoing {
    background: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.admin-table-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   ADMIN FORMS
   -------------------------------------------------------------------------- */
.admin-form-card {
    background: var(--admin-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--admin-text-secondary);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--admin-text-muted);
}

.form-control:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 30px rgba(139, 92, 246, 0.1);
    background: rgba(139, 92, 246, 0.05);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* --------------------------------------------------------------------------
   ADMIN BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--admin-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--admin-glass);
    color: var(--admin-text-secondary);
    border: 1px solid var(--admin-border);
}

.btn-secondary:hover {
    background: var(--admin-glass-hover);
    color: var(--admin-text);
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   LOGIN PAGE
   -------------------------------------------------------------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -300px;
    right: -300px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.3) 0%,
            rgba(6, 182, 212, 0.2) 100%);
    filter: blur(100px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: loginBlob 20s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -200px;
    background: linear-gradient(135deg,
            rgba(244, 114, 182, 0.2) 0%,
            rgba(139, 92, 246, 0.2) 100%);
    filter: blur(80px);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: loginBlob2 25s ease-in-out infinite;
}

@keyframes loginBlob {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes loginBlob2 {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-180deg);
    }
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--admin-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(139, 92, 246, 0.1);
    padding: var(--space-8);
    position: relative;
    z-index: 1;
    animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--admin-gradient);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    animation: logoFloat 4s ease-in-out infinite;
}

.login-logo svg {
    color: white;
}

.login-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
    color: var(--admin-text);
    font-weight: 700;
}

.login-subtitle {
    color: var(--admin-text-muted);
}

.login-form .btn-primary {
    width: 100%;
    padding: var(--space-4);
    font-size: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--admin-border);
}

.login-footer a {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #A78BFA;
}

/* --------------------------------------------------------------------------
   FILE UPLOAD
   -------------------------------------------------------------------------- */
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-8) var(--space-6);
    border: 2px dashed var(--admin-border);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.2);
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover .file-upload-label {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
}

.current-image {
    margin-top: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--admin-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--admin-border);
}

.current-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   TAGS
   -------------------------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   FILTER BAR
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--admin-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-xl);
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--admin-text-muted);
}

.search-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-muted);
}

.filter-select {
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--admin-text);
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #8B5CF6;
}

.filter-select option {
    background: var(--admin-bg);
    color: var(--admin-text);
}

/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--admin-text-secondary);
    background: var(--admin-glass);
    border: 1px solid var(--admin-border);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    color: #A78BFA;
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--admin-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* --------------------------------------------------------------------------
   ALERTS
   -------------------------------------------------------------------------- */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: alertSlide 0.4s ease;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.3);
}

.alert-error {
    background: rgba(248, 113, 113, 0.15);
    color: #F87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border-color: rgba(251, 191, 36, 0.3);
}

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--admin-text-muted);
}

.empty-state-title {
    font-size: 1.25rem;
    color: var(--admin-text-secondary);
    margin-bottom: var(--space-2);
}