@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Premium Palette Upgrade */
    --dev-bg: #030712;
    --dev-bg-alt: #0f172a;
    --dev-card: rgba(15, 23, 42, 0.7);
    --dev-card-solid: #1e293b;
    --dev-primary: #3b82f6;
    --dev-primary-glow: rgba(59, 130, 246, 0.3);
    --dev-accent: #10b981;
    --dev-accent-glow: rgba(16, 185, 129, 0.2);
    --dev-danger: #f43f5e;
    --dev-warning: #f59e0b;
    --dev-text: #f8fafc;
    --dev-text-dim: #94a3b8;
    --dev-border: rgba(255, 255, 255, 0.05);
    --dev-glass-border: rgba(255, 255, 255, 0.1);
    
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--dev-bg);
    color: var(--dev-text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

/* Glassmorphism Generic */
.glass-effect {
    background: var(--dev-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--dev-glass-border);
}

/* Navbar */
.dev-navbar {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dev-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dev-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.dev-brand i { 
    color: var(--dev-primary);
    filter: drop-shadow(0 0 8px var(--dev-primary-glow));
}

.dev-nav-menu {
    display: flex;
    gap: 8px;
}

.dev-nav-link {
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--dev-text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-nav-link:hover, .dev-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.dev-nav-link.active {
    color: var(--dev-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Dashboard Cards */
.dev-card {
    background: var(--dev-card);
    border: 1px solid var(--dev-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dev-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 20px var(--dev-primary-glow);
    background: rgba(15, 23, 42, 0.9);
    z-index: 5;
}

.dev-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.dev-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--dev-primary);
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--dev-primary-glow));
}

.dev-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 700;
}

.dev-card p {
    font-size: 0.85rem;
    color: var(--dev-text-dim);
}

/* Logging UI */
.log-container {
    background: #020617;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    max-height: 70vh;
    overflow-y: auto;
    color: #cbd5e1;
    border: 1px solid var(--dev-border);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.log-line {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    white-space: pre-wrap;
    transition: background 0.1s;
}

.log-line:hover { background: rgba(255,255,255,0.03); }
.log-error { color: #f87171; border-left: 2px solid #ef4444; }
.log-warn { color: #fbbf24; border-left: 2px solid #f59e0b; }
.log-info { color: #60a5fa; border-left: 2px solid #3b82f6; }

.log-toolbar {
    background: var(--dev-card-solid);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--dev-border);
}

/* Form Elements */
select.dev-input, input.dev-input {
    background: #0f172a;
    border: 1px solid var(--dev-border);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

select.dev-input:focus, input.dev-input:focus {
    border-color: var(--dev-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.dev-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    text-decoration: none;
}

.btn-primary { background: var(--dev-primary); color: white; }
.btn-primary:hover { 
    background: #2563eb; 
    box-shadow: 0 0 15px var(--dev-primary-glow);
}

.btn-secondary { background: rgba(255, 255, 255, 0.05); color: white; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Table Premium Style */
.dev-table-wrapper {
    background: var(--dev-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--dev-border);
}

.dev-table {
    width: 100%;
    border-collapse: collapse;
}

.dev-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dev-text-dim);
}

.dev-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dev-border);
    font-size: 0.9rem;
}

/* Layout Utilities */
.container-full { padding: 2rem 4rem; }
.breadcrumb-dev {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dev-text-dim);
}

.breadcrumb-dev a { color: var(--dev-primary); text-decoration: none; font-weight: 600; }

/* Premium Alerts */
.dev-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--dev-accent);
    color: #34d399;
}

.dev-alert-danger {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    border-left: 4px solid var(--dev-danger);
    color: #fb7185;
}

.dev-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    border-left: 4px solid var(--dev-warning);
    color: #fbbf24;
}

.dev-alert i { font-size: 1.1rem; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Page Entry Animation */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-glow:hover {
    filter: drop-shadow(0 0 8px var(--dev-primary-glow));
}

/* Universal Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-overlay .dev-card {
    height: auto !important;
    min-height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--dev-primary-glow) !important;
}

/* Sleek Icon Buttons & Remove Button */
.dev-btn-remove {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.dev-btn-remove:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   UNIVERSAL SWEETALERT2 DARK GLASSMORPHIC THEME
   ========================================================================== */
.swal2-popup.nps-swal-popup {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(59, 130, 246, 0.2) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
.swal2-title.nps-swal-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.3px !important;
}
.swal2-html-container.nps-swal-html {
    color: #cbd5e1 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin: 14px 0 0 0 !important;
}
.nps-swal-confirm-btn {
    padding: 10px 22px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
}
.nps-swal-cancel-btn {
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.nps-swal-cancel-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}



