/* ============================================
   PNT ADMIN — UNIFIED ADMIN DESIGN SYSTEM
   Consolidates styles from inline <style> blocks
   across all admin pages into a single source.
   ============================================ */

/* ============================================
   ADMIN LAYOUT (Sidebar + Content)
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 200px);
    gap: 0;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--pnt-dark-lighter, #334155) transparent;
    z-index: 10;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--pnt-dark-lighter, #334155);
    border-radius: 4px;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.admin-sidebar-brand:hover {
    color: inherit;
}

.admin-sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--pnt-gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.admin-sidebar-brand-text {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pnt-white, #fff);
}

.admin-sidebar-brand-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--pnt-gray, #64748b);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Navigation Groups */
.sidebar-nav-group {
    margin-bottom: 0.5rem;
}

.sidebar-nav-label {
    padding: 0.5rem 1.25rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pnt-gray, #64748b);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    color: var(--pnt-gray-light, #94a3b8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-item:hover {
    color: var(--pnt-white, #fff);
    background: rgba(99, 102, 241, 0.08);
    border-left-color: rgba(99, 102, 241, 0.3);
}

.sidebar-nav-item.active {
    color: var(--pnt-white, #fff);
    background: rgba(99, 102, 241, 0.12);
    border-left-color: var(--pnt-primary, #6366f1);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: var(--pnt-primary-light, #818cf8);
}

.sidebar-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav-item:hover .sidebar-nav-icon,
.sidebar-nav-item.active .sidebar-nav-icon {
    opacity: 1;
}

.sidebar-nav-badge {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.2);
    color: var(--pnt-primary-light, #818cf8);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.sidebar-nav-badge.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sidebar-nav-badge.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.sidebar-nav-badge.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Admin Content Area */
.admin-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem;
}

/* Mobile Sidebar Toggle */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pnt-gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6));
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Sidebar Overlay for Mobile */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    backdrop-filter: blur(2px);
}

/* ============================================
   ADMIN PAGE HEADER
   ============================================ */
.admin-header {
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-icon {
    width: 56px;
    height: 56px;
    background: var(--pnt-gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.admin-icon-main {
    width: 56px;
    height: 56px;
    background: var(--pnt-gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.admin-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}

.admin-header p {
    color: var(--pnt-gray-light, #94a3b8);
    font-size: 0.875rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   STAT CARDS (Unified)
   ============================================ */
.stat-card {
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.75rem;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.stat-card.stat-warning {
    border-color: rgba(239, 68, 68, 0.35);
}

.stat-card-link {
    cursor: pointer;
}

.stat-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pnt-white, #fff);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--pnt-gray-light, #94a3b8);
    font-weight: 500;
}

/* ============================================
   ICON COLOR VARIANTS (Gradient backgrounds)
   ============================================ */
.icon-purple { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.icon-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.icon-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.icon-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.icon-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.icon-yellow { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }
.icon-red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.icon-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* Subtle / muted icon variants (translucent) */
.stat-icon.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-icon.icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.stat-icon.icon-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.stat-icon.icon-orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.stat-icon.icon-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.stat-icon.icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.stat-icon.icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

/* Solid icon variants for section-icon / admin-card-icon */
.section-icon, .admin-card-icon {
    color: white;
}

/* ============================================
   ADMIN PORTAL: SECTIONS & CARDS
   ============================================ */
.admin-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--pnt-white, #fff);
}

.section-header p {
    font-size: 0.8rem;
    color: var(--pnt-gray, #64748b);
    margin-bottom: 0;
}

/* Admin navigation cards (AdminPortal) */
.admin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%));
}

.admin-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.admin-card-content {
    flex: 1;
    min-width: 0;
}

.admin-card-content h5 {
    color: var(--pnt-white, #fff);
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-card-content p {
    color: var(--pnt-gray, #64748b);
    font-size: 0.8rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-card-arrow {
    color: var(--pnt-gray, #64748b);
    font-size: 1rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.admin-card:hover .admin-card-arrow {
    transform: translateX(4px);
    color: var(--pnt-primary-light, #818cf8);
}

.admin-card-dev {
    border-color: rgba(239, 68, 68, 0.2);
}

.admin-card-dev:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.dev-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* ============================================
   QUICK STATS (Pill badges on AdminPortal)
   ============================================ */
.quick-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--pnt-gray-light, #94a3b8);
    font-size: 0.85rem;
}

.stat-pill i {
    color: var(--pnt-primary-light, #818cf8);
}

.stat-pill strong {
    color: white;
    margin-right: 0.25rem;
}

.stat-pill-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-pill-warning i { color: #fbbf24; }

.stat-pill-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-pill-success i { color: #34d399; }

.stat-pill-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse-danger 2s infinite;
}

.stat-pill-danger i { color: #f87171; }

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ============================================
   MAINTENANCE TOGGLE
   ============================================ */
.maintenance-toggle {
    flex-shrink: 0;
}

.maintenance-toggle .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

/* ============================================
   ADMIN PANELS (Forms, detail cards)
   ============================================ */
.admin-panel {
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.05);
}

.panel-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--pnt-white, #fff);
    font-size: 0.95rem;
}

.panel-body {
    padding: 1.25rem;
}

.bg-dark-card {
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%)) !important;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.bg-darker {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   ADMIN FILTER BAR
   ============================================ */
.filter-bar {
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.filter-bar .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* ============================================
   ADMIN TABLES
   ============================================ */
.admin-table {
    font-size: 0.875rem;
}

.admin-table thead th,
.table-dark th {
    color: var(--pnt-gray-light, #94a3b8);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-color: rgba(99, 102, 241, 0.1);
    white-space: nowrap;
}

.admin-table tbody td,
.table-dark td {
    color: #e2e8f0;
    border-color: rgba(99, 102, 241, 0.08);
    vertical-align: middle;
}

.table-dark {
    --bs-table-bg: transparent;
}

.row-error {
    background: rgba(239, 68, 68, 0.05) !important;
}

/* ============================================
   ADMIN FORMS (Dark theme overrides)
   ============================================ */
.admin-content .form-control,
.admin-content .form-select,
.admin-panel .form-control,
.admin-panel .form-select {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.25);
    color: #e2e8f0;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus,
.admin-panel .form-control:focus,
.admin-panel .form-select:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
}

.admin-content .input-group-text {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    color: #e2e8f0;
}

/* ============================================
   BADGE VARIANTS
   ============================================ */
.method-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.method-get { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.method-post { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.method-put { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.method-delete { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ============================================
   LOG VIEWER SPECIFIC
   ============================================ */
.log-table {
    font-size: 0.875rem;
}

.log-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
}

.log-pre {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ============================================
   SUPPORT MANAGEMENT SPECIFIC
   ============================================ */
.ticket-number {
    font-family: monospace;
    font-size: 0.85rem;
}

.ticket-message {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(99, 102, 241, 0.5);
}

.ticket-message.admin-message {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.ticket-message.internal-message {
    border-left-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border-style: dashed;
}

/* RMMS Devices Button */
.btn-rmms {
    background: linear-gradient(135deg, #0078D4 0%, #106EBE 100%);
    border: none;
    color: white;
    padding: 0.65rem 1.15rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-rmms:hover {
    background: linear-gradient(135deg, #106EBE 0%, #0078D4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
}

.rmms-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   DATABASE HEALTH SPECIFIC
   ============================================ */
.health-banner {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.health-banner.health-good {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.health-banner.health-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.health-banner.health-critical {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.health-icon {
    font-size: 2rem;
}

/* ============================================
   STATUS CARDS (SecureSettings, SmtpDiagnostics)
   ============================================ */
.status-card {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid;
}

.status-card.status-good {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-card.status-warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.status-card.status-bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.status-banner {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-banner.status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-banner.status-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ============================================
   UPLOAD OVERLAY
   ============================================ */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.upload-overlay-card {
    background: var(--pnt-gradient-card, linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.upload-overlay-card h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.upload-progress-bar-track {
    width: 100%;
    height: 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* ============================================
   RESPONSIVE: ADMIN LAYOUT
   ============================================ */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1040;
        transition: left 0.3s ease;
        padding-top: 1rem;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-sidebar-overlay.show {
        display: block;
    }

    .admin-sidebar-toggle {
        display: flex;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .admin-header-content {
        flex-direction: column;
        text-align: center;
    }

    .admin-header-actions {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .quick-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .admin-content {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 0.85rem 1rem;
    }

    .stat-value {
        font-size: 1.15rem;
    }

    .admin-header {
        padding: 1rem;
    }

    .admin-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .admin-header h1 {
        font-size: 1.25rem;
    }
}

/* bg-purple for stat icons that use Bootstrap bg-* overrides */
.bg-purple { background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; }
