/* Career Applications Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    color: #222;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-table th, .admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.admin-table th {
    background: #f6f8fa;
    font-weight: 600;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table a {
    color: #2563eb;
    text-decoration: underline;
}
/* ═══════════════════════════════════════════════════════════════════
   iFix Admin Dashboard Styles
   ═══════════════════════════════════════════════════════════════════ */

/* Hide nav and footer on admin page */
.page-admin .main-nav,
.page-admin .footer-section,
.page-admin footer {
    display: none !important;
}

.page-admin body,
.page-admin #app {
    background: #f0f2f5;
}

.admin-wrapper {
    min-height: 100vh;
    background: #f0f2f5;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Login ─────────────────────────────────────────────────────── */
.admin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.admin-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 24px;
}

.admin-login-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.admin-login-card p {
    color: #666;
    margin: 0 0 24px;
    font-size: 14px;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: #111827;
    caret-color: #111827;
    -webkit-text-fill-color: #111827;
}

.admin-input:focus {
    border-color: #2563eb;
}

.admin-input::placeholder {
    color: #94a3b8;
    -webkit-text-fill-color: #94a3b8;
}

#admin-password {
    color: #111827;
    caret-color: #111827;
    -webkit-text-fill-color: #111827;
}

.admin-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 12px;
}

/* ─── Header ────────────────────────────────────────────────────── */
.admin-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.admin-title {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    padding-left: 12px;
    border-left: 2px solid #e2e8f0;
}

.admin-header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #111;
    border-color: #cbd5e1;
}

/* ─── Stats Bar ─────────────────────────────────────────────────── */
.admin-stats-bar {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

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

.stat-icon.new { background: #eff6ff; color: #2563eb; }
.stat-icon.contacted { background: #fef9c3; color: #ca8a04; }
.stat-icon.in-progress { background: #fce7f3; color: #db2777; }
.stat-icon.completed { background: #dcfce7; color: #16a34a; }
.stat-icon.total { background: #f1f5f9; color: #475569; }

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.admin-stat-card .stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

/* ─── Controls ──────────────────────────────────────────────────── */
.admin-controls {
    max-width: 1400px;
    margin: 0 auto 16px;
    padding: 0 24px;
}

.admin-form-settings {
    max-width: 1400px;
    margin: 0 auto 16px;
    padding: 0 24px;
}

.admin-form-settings-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.admin-form-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-form-settings-head h3 {
    margin: 0;
    font-size: 18px;
    color: #111;
}

.admin-form-settings-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.admin-form-settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-form-settings-body {
    display: grid;
}

.admin-form-settings-body[hidden] {
    display: none !important;
}

.admin-section-toggle {
    display: inline-flex;
    align-items: center;
    min-width: 110px;
    justify-content: center;
    gap: 8px;
}

.admin-section-toggle i {
    transition: transform 0.2s ease;
}

.admin-form-settings-card.is-collapsed {
    padding-bottom: 18px;
}

.admin-settings-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.admin-settings-status.is-neutral {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.admin-settings-status.is-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.admin-settings-status.is-warn {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.admin-settings-status.is-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.admin-settings-editor {
    display: grid;
    gap: 24px;
}

.admin-form-page-picker {
    display: grid;
    gap: 8px;
}

.admin-form-page-picker label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-form-page-helper {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.admin-form-page-helper code {
    color: #0f172a;
}

.admin-loading-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    color: #64748b;
    font-size: 14px;
}

.admin-option-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
}

.admin-option-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-option-card-header h4 {
    margin: 0;
    font-size: 15px;
    color: #111;
}

.admin-option-card-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.admin-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-option-section {
    display: grid;
    gap: 16px;
}

.admin-option-section + .admin-option-section {
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.admin-option-section-head h4 {
    margin: 0;
    font-size: 18px;
    color: #111;
}

.admin-option-section-head p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.admin-option-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-form-empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    background: #f8fafc;
}

.admin-form-empty-state h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.admin-form-empty-state p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.admin-form-empty-state p:last-child {
    margin-bottom: 0;
}

.admin-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admin-option-remove {
    margin-right: 0;
}

.admin-filters {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    -webkit-text-fill-color: #111827;
}

.filter-group select option {
    color: #111827;
    background: #fff;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #2563eb;
}

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

.search-group input {
    width: 100%;
    box-sizing: border-box;
}

.nav-event-path {
    display: inline-block;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    color: #334155;
    word-break: break-word;
}

.nav-event-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    text-transform: capitalize;
}

/* ─── Table ─────────────────────────────────────────────────────── */
.admin-table-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    font-size: 14px;
}

.admin-table thead th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}

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

.admin-table tbody tr.row-new {
    background: #eff6ff;
}

.admin-table tbody tr.row-new:hover {
    background: #dbeafe;
}

.cell-date {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.cell-time {
    font-size: 11px;
    color: #94a3b8;
}

.phone-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

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

.cell-issue {
    min-width: 220px;
    max-width: 340px;
    font-size: 13px;
    color: #64748b;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
}

/* ─── Status Badges ─────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-new { background: #dbeafe; color: #1e40af; }
.badge-contacted { background: #fef9c3; color: #92400e; }
.badge-inprogress { background: #fce7f3; color: #9d174d; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* ─── Action Buttons ────────────────────────────────────────────── */
.cell-actions {
    white-space: nowrap;
}

.btn-action {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    font-size: 12px;
    margin-right: 4px;
}

.btn-action:hover { background: #f1f5f9; color: #111; }
.btn-view:hover { color: #2563eb; border-color: #93c5fd; }
.btn-status:hover { color: #16a34a; border-color: #86efac; }

/* ─── Loading / Empty States ────────────────────────────────────── */
.admin-loading,
.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.admin-empty i {
    font-size: 48px;
    color: #cbd5e1;
}

/* ─── Modal ─────────────────────────────────────────────────────── */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.admin-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.admin-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.admin-modal-close:hover {
    color: #111;
}

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

/* ─── Detail Grid ───────────────────────────────────────────────── */
.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-grid hr {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 8px 0;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-row.full {
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
    padding-top: 2px;
}

.detail-value {
    font-size: 14px;
    color: #111;
    flex: 1;
}

.detail-value.mono {
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    color: #64748b;
}

.detail-value a {
    color: #2563eb;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-issue {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.admin-select-sm {
    padding: 4px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    outline: none;
    font-family: inherit;
    -webkit-text-fill-color: #111827;
}

.admin-select-sm option {
    color: #111827;
    background: #fff;
}

.admin-select-sm:focus {
    border-color: #2563eb;
}

.admin-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    margin-top: 8px;
    box-sizing: border-box;
}

.admin-textarea:focus {
    border-color: #2563eb;
}

/* ─── Modal Actions ─────────────────────────────────────────────── */
.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-actions .btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-actions .btn-primary {
    background: #2563eb;
    color: #fff;
}

.modal-actions .btn-primary:hover {
    background: #1d4ed8;
}

.modal-actions .btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.modal-actions .btn-danger:hover {
    background: #fecaca;
}

.modal-actions .btn-call {
    background: #dcfce7;
    color: #16a34a;
}

.modal-actions .btn-call:hover {
    background: #bbf7d0;
}

.modal-actions .btn-whatsapp {
    background: #dcfce7;
    color: #16a34a;
}

.modal-actions .btn-whatsapp:hover {
    background: #bbf7d0;
}

/* btn-block for login */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .admin-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }

    .admin-controls {
        padding: 0 16px;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-table-wrap {
        padding: 0 16px 40px;
        overflow-x: auto;
    }

    .admin-table {
        min-width: 800px;
    }

    .admin-header {
        padding: 0 16px;
    }
}

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

    .admin-login-card {
        margin: 0 16px;
        padding: 32px 24px;
    }

    .admin-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Admin Tabs
   ═══════════════════════════════════════════════════════════════════ */
.admin-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.admin-tab {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-tab:hover { color: #333; background: #f8f9fa; }
.admin-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.admin-tab i { font-size: 15px; }
.admin-tab-content { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
    .admin-option-section-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Image Manager
   ═══════════════════════════════════════════════════════════════════ */
.img-manager {
    padding: 20px 24px;
}

/* Toolbar */
.img-manager-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.img-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.img-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.img-filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
    background: #fff;
    min-width: 160px;
}

/* Upload area */
.img-upload-area {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.img-upload-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}
.img-upload-dropzone:hover,
.img-upload-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}
.img-upload-dropzone i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.img-upload-dropzone .small {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.img-upload-progress {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}
.img-uploaded-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.img-uploaded-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}
.img-uploaded-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}
.img-uploaded-name {
    font-size: 13px;
    font-weight: 600;
}
.img-uploaded-url {
    font-size: 11px;
    color: #666;
    word-break: break-all;
}

/* Image grid container */
.img-grid-container {
    min-height: 200px;
}
.img-loading, .img-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}
.img-empty i, .img-loading i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

/* Page groups */
.img-page-group {
    margin-bottom: 28px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.img-page-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.img-page-title i {
    color: #2563eb;
}
.img-section-group {
    margin-bottom: 16px;
}
.img-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image cards grid */
.img-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.img-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}
.img-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.img-card-custom {
    border-color: #86efac;
}
.img-card-thumb {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.img-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-badge-custom {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}
.img-card-info {
    padding: 8px 10px;
}
.img-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.img-card-id {
    font-size: 10px;
    color: #94a3b8;
    font-family: monospace;
}
.img-card-current {
    font-size: 11px;
    color: #059669;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.img-card-actions {
    display: flex;
    gap: 4px;
    padding: 6px 10px 10px;
    border-top: 1px solid #f1f5f9;
}
.btn-img-action {
    flex: 1;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
    color: #64748b;
}
.btn-img-action:hover {
    background: #f1f5f9;
}
.btn-img-edit:hover { color: #2563eb; border-color: #2563eb; }
.btn-img-reset:hover { color: #f59e0b; border-color: #f59e0b; }
.btn-img-delete:hover { color: #ef4444; border-color: #ef4444; }

/* Image Picker Modal */
.img-picker {
    max-height: 70vh;
    overflow-y: auto;
}
.img-picker-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.img-picker-section:last-child {
    border-bottom: none;
}
.img-picker-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.img-picker-section h4 i {
    color: #2563eb;
}
.img-picker-url-row,
.img-picker-upload-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.img-picker-url-row input,
.img-picker-upload-row input {
    flex: 1;
}
.img-picker-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}
.img-picker-thumb {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
}
.img-picker-thumb:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}
.img-picker-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.img-picker-thumb-name {
    font-size: 9px;
    color: #666;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.img-picker-current {
    text-align: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
}
.img-picker-current img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    object-fit: contain;
}
.img-picker-default-info {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}
.img-picker-default-info code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-tabs {
        padding: 0 12px;
    }
    .admin-tab {
        padding: 12px 16px;
        font-size: 13px;
    }
    .img-manager {
        padding: 12px;
    }
    .img-manager-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .img-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .img-picker-url-row,
    .img-picker-upload-row {
        flex-direction: column;
    }
    .admin-form-settings,
    .admin-controls,
    .admin-table-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
    .admin-option-row {
        grid-template-columns: 1fr;
    }
    .admin-option-remove {
        width: 100%;
        height: 38px;
    }
}
