/* ===================================
   HostCMS Additional Styles
   =================================== */

/* ── Hosting Show Page ──────────────────── */
.min-vh-50 {
    min-height: 50vh;
}

/* ── Badge Colors ───────────────────────── */
.badge.bg-purple {
    background: #7c3aed !important;
}

/* ── Sort Handle ────────────────────────── */
.sort-handle {
    cursor: grab;
    user-select: none;
}
.sort-handle:active {
    cursor: grabbing;
}

/* ── CKEditor Dark Fix ──────────────────── */
[data-bs-theme="dark"] .ck.ck-editor {
    --ck-color-base-background: #1e293b;
    --ck-color-base-foreground: #0f172a;
    --ck-color-base-border: #334155;
    --ck-color-base-text: #f1f5f9;
}

/* ── Admin Dark Mode ────────────────────── */
[data-bs-theme="dark"] .admin-sidebar {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}
[data-bs-theme="dark"] .admin-topbar,
[data-bs-theme="dark"] .form-card,
[data-bs-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .admin-table .table {
    color: #f1f5f9;
}
[data-bs-theme="dark"] .admin-table .table th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}
[data-bs-theme="dark"] .admin-table .table td {
    border-color: #334155;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #0f172a;
    border-color: #2563eb;
    color: #f1f5f9;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}
[data-bs-theme="dark"] .form-check-input {
    background-color: #334155;
    border-color: #475569;
}
[data-bs-theme="dark"] .form-card-title {
    color: #f1f5f9;
    border-color: #334155;
}
[data-bs-theme="dark"] .form-label {
    color: #cbd5e1;
}

/* ── Scrollbar ──────────────────────────── */
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* ── File Upload Preview ────────────────── */
.file-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    padding: 4px;
}

/* ── Empty State ────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--admin-text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ── Loading Spinner ────────────────────── */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
[data-bs-theme="dark"] .spinner-overlay {
    background: rgba(15, 23, 42, 0.8);
}

/* ── Notification Toast ─────────────────── */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
}

/* ── Card Hover Effect (Admin) ──────────── */
.admin-card-link {
    text-decoration: none;
    color: inherit;
}
.admin-card-link:hover .stat-card {
    border-color: var(--admin-primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

/* ── Responsive Table ───────────────────── */
@media (max-width: 768px) {
    .admin-table .table {
        font-size: 0.8rem;
    }
    .admin-table .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    .admin-content {
        padding: 1rem;
    }
}

/* ── Frontend Hosting Card Badge ────────── */
.hc-pricing-card .badge {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Network Status Colors ──────────────── */
.status-operational { color: #10b981; }
.status-degraded { color: #f59e0b; }
.status-partial_outage { color: #f97316; }
.status-major_outage { color: #ef4444; }
.status-maintenance { color: #6366f1; }

/* ── Announcement Pinned ────────────────── */
.announcement-pinned {
    border-left: 4px solid #f59e0b;
}
