/* =============================================
   ADMIN PANEL v2.0 — Modern Sidebar Layout
   ============================================= */

/* ===== Variables ===== */
:root {
    --admin-bg: #0f1117;
    --admin-sidebar: #161822;
    --admin-card: #1a1d2e;
    --admin-input: #1e2235;
    --admin-border: rgba(255, 255, 255, 0.06);
    --admin-border-hover: rgba(255, 255, 255, 0.12);
    --admin-text: #e8e6f0;
    --admin-text-dim: #8a8fa0;
    --admin-text-muted: #5f6573;
    --admin-accent: #ffc83c;
    --admin-accent-hover: #ffd966;
    --admin-green: #4ecdc4;
    --admin-red: #ff6b6b;
    --admin-orange: #ff6d2e;
    --admin-blue: #5b8def;
    --admin-purple: #a78bfa;
    --sidebar-width: 220px;
    --topbar-height: 56px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== Login ===== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--admin-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-box {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-box h2 {
    font-family: 'Be Vietnam Pro', serif;
    color: var(--admin-accent);
    margin-bottom: 0.3rem;
}

.login-box p {
    color: var(--admin-text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

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

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--admin-sidebar);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--admin-border);
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    font-family: 'Be Vietnam Pro', serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--admin-accent);
}

.sidebar-nav {
    flex: 1;
    padding: 0.8rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-footer {
    padding: 0.6rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--admin-text-dim);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--admin-text);
}

.nav-item.active {
    background: rgba(255, 200, 60, 0.1);
    color: var(--admin-accent);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    white-space: nowrap;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ===== Top Bar ===== */
.topbar {
    height: var(--topbar-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--admin-border);
    background: var(--admin-sidebar);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--admin-text);
    font-size: 1.4rem;
    cursor: pointer;
}

.page-title {
    font-family: 'Be Vietnam Pro', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-text);
    flex: 1;
}

.topbar-badge {
    font-size: 0.78rem;
    padding: 4px 12px;
    background: rgba(255, 200, 60, 0.1);
    color: var(--admin-accent);
    border-radius: 20px;
    font-weight: 600;
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

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

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

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

/* ===== Stats ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-family: 'Be Vietnam Pro', serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--admin-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-total .stat-number {
    color: var(--admin-accent);
}

.stat-available .stat-number {
    color: var(--admin-green);
}

.stat-sold .stat-number {
    color: var(--admin-red);
}

/* ===== Cards ===== */
.card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--admin-border);
}

.card-header h3 {
    font-family: 'Be Vietnam Pro', serif;
    font-size: 0.95rem;
    color: var(--admin-accent);
    font-weight: 700;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--admin-text-dim);
    margin-top: 4px;
}

.card-body {
    padding: 1.2rem;
}

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

/* ===== Quick Actions ===== */
.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--admin-input);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--admin-text);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
    text-decoration: none;
    width: 100%;
}

.quick-action:hover {
    border-color: var(--admin-accent);
    background: rgba(255, 200, 60, 0.05);
}

/* ===== Forms ===== */
.form-card {
    max-width: 900px;
}

.form-card .card-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

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

.form-label .hint {
    font-weight: 400;
    color: var(--admin-text-muted);
}

.form-input,
.form-select {
    width: 100%;
    padding: 9px 12px;
    background: var(--admin-input);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--admin-text);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(255, 200, 60, 0.08);
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8fa0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.item-options-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn .form-input {
    flex: 1;
}

/* ===== Buttons ===== */
.btn-primary {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #c8860a, var(--admin-orange));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Be Vietnam Pro', serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(255, 109, 46, 0.3);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.btn-sm {
    width: auto;
    padding: 9px 20px;
}

.btn-ai {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: var(--radius-sm);
    color: var(--admin-green);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-ai:hover {
    border-color: var(--admin-green);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.1);
}

/* ===== Upload ===== */
.upload-area {
    border: 2px dashed var(--admin-border-hover);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--admin-accent);
    background: rgba(255, 200, 60, 0.03);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--admin-text-dim);
    font-size: 0.85rem;
}

.browse-text {
    color: var(--admin-accent);
    text-decoration: underline;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.72rem !important;
    color: var(--admin-text-muted) !important;
    margin-top: 4px;
}

.upload-preview {
    display: none;
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.upload-area.has-file .upload-preview {
    display: block;
}

.upload-area.has-file .upload-placeholder {
    display: none;
}

#uploadInput {
    display: none;
}

.bulk-drop {
    min-height: 140px;
}

/* ===== AI Status ===== */
.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    color: var(--admin-green);
    font-size: 0.82rem;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-top-color: var(--admin-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Bulk Upload ===== */
.bulk-progress {
    margin-top: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--admin-text-dim);
}

.progress-count {
    color: var(--admin-accent);
    font-weight: 600;
}

.progress-bar-bg {
    background: var(--admin-input);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--admin-accent), var(--admin-orange));
    border-radius: 8px;
    transition: width 0.3s;
    width: 0%;
}

.bulk-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.bulk-card-form {
    background: var(--admin-input);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 10px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bulk-card-form:hover {
    border-color: var(--admin-accent);
    box-shadow: 0 2px 12px rgba(255, 200, 60, 0.08);
}

.bulk-thumb {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
}

.bulk-loading {
    font-size: 0.82rem;
    color: var(--admin-text-dim);
    padding: 8px 0;
    text-align: center;
}

.bulk-input {
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
    min-height: unset !important;
}

.bulk-opts {
    resize: vertical;
    min-height: 50px !important;
    font-size: 0.72rem !important;
    line-height: 1.3;
}

.bulk-row {
    display: flex;
    gap: 6px;
}

.bulk-row>* {
    flex: 1;
    min-width: 0;
}

.bulk-label {
    font-size: 0.68rem;
    color: var(--admin-text-dim);
    font-weight: 600;
    margin-bottom: 1px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bulk-reanalyze {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.bulk-reanalyze.btn-success {
    background: rgba(78, 205, 196, 0.12);
    color: var(--admin-green);
}

.bulk-reanalyze.btn-success:hover {
    background: rgba(78, 205, 196, 0.2);
}

.bulk-reanalyze.btn-warning {
    background: rgba(255, 109, 46, 0.15);
    color: var(--admin-orange);
}

.bulk-reanalyze.btn-warning:hover {
    background: rgba(255, 109, 46, 0.25);
}

.bulk-reanalyze:disabled {
    opacity: 0.5;
    cursor: wait;
}

.bulk-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 80, 80, 0.8);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.bulk-remove:hover {
    background: var(--admin-red);
    transform: scale(1.1);
}

.bulk-submit {
    margin-top: 1.5rem;
}

/* ===== Manage Toolbar ===== */
.manage-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 160px;
}

/* ===== Admin Items List ===== */
.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--admin-input);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-item:hover {
    border-color: var(--admin-border-hover);
}

.admin-item.sold-item {
    opacity: 0.4;
}

.admin-item-thumb {
    width: 56px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--admin-border);
}

.admin-item-info {
    flex: 1;
    min-width: 0;
}

.admin-item-code {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--admin-accent);
    font-family: 'Courier New', monospace;
}

.admin-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-details {
    font-size: 0.72rem;
    color: var(--admin-text-dim);
}

.admin-item-options {
    font-size: 0.68rem;
    color: var(--admin-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    margin-top: 2px;
}

.admin-item-price {
    font-weight: 700;
    color: var(--admin-accent);
    font-size: 0.85rem;
    white-space: nowrap;
    font-family: 'Be Vietnam Pro', serif;
}

.admin-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-action {
    padding: 5px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: transparent;
    color: var(--admin-text-dim);
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    border-color: var(--admin-text-dim);
    color: var(--admin-text);
}

.btn-action.btn-sold:hover {
    border-color: var(--admin-accent);
    color: var(--admin-accent);
}

.btn-action.btn-sold.is-sold {
    border-color: var(--admin-green);
    color: var(--admin-green);
}

.btn-action.btn-delete:hover {
    border-color: var(--admin-red);
    color: var(--admin-red);
}

/* ===== Settings ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.theme-options {
    display: flex;
    gap: 10px;
}

.theme-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    background: var(--admin-input);
    color: var(--admin-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.theme-btn:hover {
    border-color: var(--admin-accent);
}

.theme-btn.active {
    border-color: var(--admin-accent);
    background: rgba(255, 200, 60, 0.1);
    color: var(--admin-accent);
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease;
}

.toast.success {
    background: linear-gradient(135deg, #1a472a, #2d7a4f);
}

.toast.error {
    background: linear-gradient(135deg, #5a1a1a, #8b3a3a);
}

@keyframes toastIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

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

/* ===== Loading ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2rem;
    color: var(--admin-text-dim);
}

.text-muted {
    color: var(--admin-text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* =============================================
   LIGHT THEME
   ============================================= */
body.light-theme {
    --admin-bg: #f2f4f7;
    --admin-sidebar: #ffffff;
    --admin-card: #ffffff;
    --admin-input: #f5f6f8;
    --admin-border: #e2e5ea;
    --admin-border-hover: #cdd1d8;
    --admin-text: #1a1d23;
    --admin-text-dim: #5f6573;
    --admin-text-muted: #8a8fa0;
    --admin-accent: #c8860a;
    --admin-accent-hover: #b07608;
    --admin-green: #0d9488;
    --admin-red: #dc2626;
    --admin-orange: #d4650a;
    --admin-blue: #3b76d9;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-theme .sidebar {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .stat-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.light-theme .toast.success {
    background: linear-gradient(135deg, #d4edda, #b8e6c8);
    color: #155724;
}

body.light-theme .toast.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

body.light-theme .btn-ai {
    background: linear-gradient(135deg, #e8f4f8, #d1ecf1);
    color: #117a8b;
}

body.light-theme .bulk-card img {
    background: #eef0f3;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

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

    .sidebar-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .form-row-inline {
        grid-template-columns: 1fr;
    }

    .manage-toolbar {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .bulk-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth transitions */
body,
.sidebar,
.main-content,
.card,
.stat-card,
.admin-item,
.nav-item,
.form-input,
.form-select,
.btn-primary {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

/* ===== Dashboard Charts ===== */
.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chart-label {
    font-size: 0.78rem;
    color: var(--admin-text-dim);
    min-width: 90px;
    text-align: right;
}

.chart-bar-bg {
    flex: 1;
    height: 22px;
    background: var(--admin-input);
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--admin-accent), var(--admin-orange));
    border-radius: 6px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.chart-bar-element {
    background: linear-gradient(90deg, var(--admin-green), var(--admin-blue));
}

.chart-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--admin-accent);
    min-width: 28px;
}

/* ===== Edit Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.modal-header h3 {
    font-family: 'Be Vietnam Pro', serif;
    font-size: 0.95rem;
    color: var(--admin-accent);
}

.modal-close {
    background: none;
    border: none;
    color: var(--admin-text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--admin-red);
}

.modal-body {
    padding: 1.2rem;
}