/* ============================================================
   IFPTA Admin Panel CSS
   ============================================================ */

:root {
    --admin-sidebar-bg: #1a2332;
    --admin-sidebar-hover: #243044;
    --admin-sidebar-active: #2d3e55;
    --admin-sidebar-border: rgba(255,255,255,0.06);
    --admin-sidebar-text: rgba(255,255,255,0.65);
    --admin-sidebar-text-active: #ffffff;
    --admin-sidebar-accent: #4a9eff;
    --admin-topbar-bg: #ffffff;
    --admin-content-bg: #f4f6f9;
    --admin-card-bg: #ffffff;
    --admin-border: #e8ecf4;
    --admin-text-dark: #1a2332;
    --admin-text-medium: #4a5568;
    --admin-text-light: #8492a6;
    --admin-primary: #003087;
    --admin-green: #2E7D32;
    --admin-red: #C62828;
    --admin-orange: #E65100;
    --admin-blue: #1565C0;
    --admin-shadow-sm: 0 1px 4px rgba(26,35,50,0.08);
    --admin-shadow-md: 0 4px 16px rgba(26,35,50,0.12);
    --admin-radius: 10px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.admin-body {
    font-family: 'Poppins', sans-serif;
    background: var(--admin-content-bg);
    color: var(--admin-text-dark);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.admin-content {
    flex: 1;
    padding: 28px;
    padding-top: calc(var(--topbar-height) + 28px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--admin-sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    border-bottom: 1px solid var(--admin-sidebar-border);
    min-height: 70px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #003087, #1565C0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-logo-text .logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.sidebar-logo-text .logo-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

/* Sidebar User */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-sidebar-border);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565C0, #003087);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sidebar-user-info .user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: capitalize;
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.nav-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    padding: 12px 20px 6px;
    pointer-events: none;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
}

.sidebar-nav ul li a:hover {
    background: var(--admin-sidebar-hover);
    color: var(--admin-sidebar-text-active);
}

.sidebar-nav ul li a.active {
    background: var(--admin-sidebar-active);
    color: var(--admin-sidebar-text-active);
    border-left: 3px solid var(--admin-sidebar-accent);
}

.sidebar-nav ul li a i:first-child {
    width: 18px;
    font-size: 0.9rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.sidebar-nav ul li a span {
    flex: 1;
}

.nav-badge {
    background: #E53935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Submenu */
.has-submenu .arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.has-submenu.open .arrow-icon,
.has-submenu:hover .arrow-icon {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: rgba(0,0,0,0.15);
    list-style: none;
}

.submenu.open,
.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 8px 20px 8px 50px !important;
    font-size: 0.8rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--admin-sidebar-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.2);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.admin-topbar {
    background: var(--admin-topbar-bg);
    height: var(--topbar-height);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 999;
    box-shadow: var(--admin-shadow-sm);
    transition: left 0.3s ease;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--admin-text-medium);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.topbar-toggle:hover {
    background: var(--admin-content-bg);
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--admin-text-dark);
}

.topbar-breadcrumb i {
    color: var(--admin-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-date {
    font-size: 0.78rem;
    color: var(--admin-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--admin-content-bg);
    border: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-medium);
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: var(--admin-primary);
    color: #fff;
    border-color: var(--admin-primary);
}

.topbar-logout:hover {
    background: var(--admin-red);
    border-color: var(--admin-red);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #003087, #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.topbar-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--admin-text-dark);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--admin-text-dark);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 0.83rem;
    color: var(--admin-text-light);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.btn-primary-admin {
    background: var(--admin-primary);
    color: #fff;
}

.btn-primary-admin:hover {
    background: #001f5b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,48,135,0.3);
}

.btn-success-admin {
    background: var(--admin-green);
    color: #fff;
}

.btn-success-admin:hover {
    background: #1B5E20;
    color: #fff;
}

.btn-danger-admin {
    background: var(--admin-red);
    color: #fff;
}

.btn-danger-admin:hover {
    background: #B71C1C;
    color: #fff;
}

.btn-outline-admin {
    background: transparent;
    color: var(--admin-text-medium);
    border-color: var(--admin-border);
}

.btn-outline-admin:hover {
    background: var(--admin-content-bg);
    color: var(--admin-text-dark);
}

.btn-sm-admin {
    padding: 6px 14px;
    font-size: 0.78rem;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    padding: 22px 24px;
    box-shadow: var(--admin-shadow-sm);
    border: 1px solid var(--admin-border);
    border-left: 4px solid;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--admin-shadow-md);
    transform: translateY(-2px);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
}

.stat-blue { border-left-color: #1565C0; }
.stat-blue .stat-card-icon { background: #e3f2fd; color: #1565C0; }
.stat-blue::after { background: #1565C0; }

.stat-green { border-left-color: #2E7D32; }
.stat-green .stat-card-icon { background: #e8f5e9; color: #2E7D32; }
.stat-green::after { background: #2E7D32; }

.stat-red { border-left-color: #C62828; }
.stat-red .stat-card-icon { background: #ffebee; color: #C62828; }
.stat-red::after { background: #C62828; }

.stat-orange { border-left-color: #E65100; }
.stat-orange .stat-card-icon { background: #fff3e0; color: #E65100; }
.stat-orange::after { background: #E65100; }

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-card-info {
    flex: 1;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--admin-text-dark);
    line-height: 1.1;
}

.stat-card-label {
    font-size: 0.83rem;
    color: var(--admin-text-medium);
    font-weight: 600;
    margin-top: 2px;
}

.stat-card-sub {
    font-size: 0.75rem;
    color: var(--admin-text-light);
    margin-top: 2px;
}

.stat-card-link {
    font-size: 0.75rem;
    color: var(--admin-text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.stat-card-link:hover {
    color: var(--admin-primary);
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.quick-actions-section {
    margin-bottom: 28px;
}

.section-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--admin-text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading i { color: var(--admin-primary); }

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-action-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--admin-text-medium);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-action-card:hover {
    box-shadow: var(--admin-shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
    color: var(--admin-text-dark);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--admin-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: var(--admin-primary); }

.card-link {
    font-size: 0.78rem;
    color: var(--admin-primary);
    text-decoration: none;
    font-weight: 600;
}

.card-link:hover { text-decoration: underline; }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.admin-table thead tr {
    background: #f8f9fc;
}

.admin-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-light);
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text-medium);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #f8f9fc;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #003087, #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.table-actions {
    display: flex;
    gap: 6px;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   FORMS
   ============================================================ */
.admin-form {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
    overflow: hidden;
}

.admin-form-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--admin-border);
    background: #f8f9fc;
}

.admin-form-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-text-dark);
}

.admin-form-body {
    padding: 28px;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--admin-border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--admin-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label-admin {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text-dark);
    margin-bottom: 7px;
}

.form-control-admin {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--admin-text-dark);
    background: #fff;
    outline: none;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.form-control-admin:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0,48,135,0.08);
}

textarea.form-control-admin {
    min-height: 120px;
    resize: vertical;
}

select.form-control-admin {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238492a6' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 0.73rem;
    color: var(--admin-text-light);
    margin-top: 5px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Toggle switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #e0e0e0;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
    background: var(--admin-green);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--admin-text-medium);
    font-weight: 500;
}

/* ============================================================
   ALERTS
   ============================================================ */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    position: relative;
}

.admin-alert.alert-success { background: #e8f5e9; color: #2E7D32; border-left: 3px solid #4CAF50; }
.admin-alert.alert-error { background: #ffebee; color: #C62828; border-left: 3px solid #EF5350; }
.admin-alert.alert-warning { background: #fff8e1; color: #F57F17; border-left: 3px solid #FFC107; }
.admin-alert.alert-info { background: #e3f2fd; color: #1565C0; border-left: 3px solid #42A5F5; }

.alert-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    line-height: 1;
}

.alert-close:hover { opacity: 1; }

/* ============================================================
   FILTERS BAR
   ============================================================ */
.filters-bar {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 160px;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-light);
}

/* ============================================================
   DATA TABLE CARD
   ============================================================ */
.data-table-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
    overflow: hidden;
}

.data-table-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fafbff;
}

.data-table-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 7px 12px;
    background: #fff;
}

.table-search input {
    border: none;
    outline: none;
    font-size: 0.83rem;
    font-family: 'Poppins', sans-serif;
    width: 200px;
    color: var(--admin-text-dark);
}

.table-search i { color: var(--admin-text-light); }

.table-info {
    font-size: 0.78rem;
    color: var(--admin-text-light);
    padding: 12px 22px;
    border-top: 1px solid var(--admin-border);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--admin-text-light);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.2;
    margin-bottom: 12px;
    display: block;
}

.empty-state p {
    font-size: 0.88rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 22px;
    border-top: 1px solid var(--admin-border);
}

.admin-page-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--admin-text-medium);
    background: #fff;
    border: 1px solid var(--admin-border);
    text-decoration: none;
    transition: all 0.2s;
}

.admin-page-btn:hover,
.admin-page-btn.active {
    background: var(--admin-primary);
    color: #fff;
    border-color: var(--admin-primary);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--admin-text-light);
    margin-bottom: 24px;
}

.admin-breadcrumb a { color: var(--admin-primary); text-decoration: none; }
.admin-breadcrumb a:hover { text-decoration: underline; }
.admin-breadcrumb i { font-size: 0.65rem; }

/* ============================================================
   IMAGE UPLOAD
   ============================================================ */
.image-upload-zone {
    border: 2px dashed var(--admin-border);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbff;
}

.image-upload-zone:hover {
    border-color: var(--admin-primary);
    background: #f0f4ff;
}

.image-upload-zone i { font-size: 2rem; color: var(--admin-text-light); margin-bottom: 8px; display: block; }
.image-upload-zone p { font-size: 0.83rem; color: var(--admin-text-light); }

.image-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    margin-top: 10px;
}

/* ============================================================
   MODALS
   ============================================================ */
.admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-overlay.active { display: flex; }

.admin-modal {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.admin-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.admin-modal-body { padding: 24px; }

.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .quick-actions-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        left: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .stats-cards { grid-template-columns: 1fr 1fr; }
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-content { padding: 16px; padding-top: calc(var(--topbar-height) + 16px); }
    .topbar-date, .topbar-name { display: none; }
    .page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .stats-cards { grid-template-columns: 1fr; }
    .quick-actions-grid { grid-template-columns: 1fr 1fr; }
}
