/* 
    Ultra-Premium Cyber Neon Theme 
    Dark Mode by Default for NG SMM Panel
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root, [data-bs-theme="dark"] {
    /* Bootstrap overrides for Dark Theme */
    --bs-body-bg: #050510;       
    --bs-body-color: #e2e8f0;    
    --bs-secondary-bg: #0b0b1a;  
    --bs-border-color: rgba(0, 243, 255, 0.15);

    /* Core Colors - Cyber Neon */
    --primary: #00f3ff;       /* Neon Cyan */
    --primary-hover: #00c6d1; 
    --primary-light: rgba(0, 243, 255, 0.15); 
    
    --secondary: #3b82f6;     
    --accent: #ff00ff;        /* Neon Pink */
    
    --success: #00ff9d;       /* Neon Green */
    --warning: #ffb800;
    --danger: #ff003c;        /* Neon Red */
    --info: #00f3ff;

    /* Backgrounds */
    --bg-main: #050510;       /* Very Dark Blue */
    --bg-card: #0b0b1a;       /* Dark Blue */
    --bg-dark: #020205;       
    --bg-darker: #020205;     
    
    /* Text */
    --text-dark: #f8fafc;     /* White/Light */
    --text-muted: #a1a1aa;    /* Zinc 400 */
    --text-light: #f8fafc;
    
    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.08); 
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 0 20px rgba(99, 102, 241, 0.05); /* Soft Indigo Glow */
    
    /* Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

/* Cards */
.saas-card, .card {
    background: var(--bg-card) !important;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.saas-card:hover, .card:hover {
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent) 100%);
    color: white;
}

.btn-secondary, .btn-light {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-dark) !important;
}

/* Inputs */
.form-control, .form-select, .input-group-text {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color) !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: rgba(255,255,255,0.03) !important;
    color: var(--text-dark) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-light);
    background-color: rgba(255,255,255,0.05) !important;
}

/* Fix for disabled inputs */
.form-control:disabled, .form-select:disabled {
    background-color: rgba(255,255,255,0.01) !important;
    opacity: 0.6;
}

/* Fix for select options in dark mode */
select option {
    background-color: var(--bg-card) !important;
    color: var(--text-dark) !important;
}

/* Sidebar Dashboard */
.sidebar {
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    border-right: 1px solid var(--border-color);
}
.sidebar .nav-link {
    color: var(--text-muted); 
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar .nav-link i {
    font-size: 1.2rem;
}
.sidebar .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}
.sidebar .nav-link.active {
    color: white;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
}

/* Dashboard Topbar */
.topbar {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Badges & Pills */
.badge-soft-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-soft-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge-soft-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge-soft-primary {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Glass & Gradients */
.glass-panel {
    background: rgba(18, 18, 20, 0.7);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tables in Dark Mode */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-dark);
    --bs-table-border-color: var(--border-color);
    color: var(--text-dark);
}
.table-light, .card-header {
    background-color: rgba(255,255,255,0.02) !important;
    color: var(--text-dark) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.table-hover tbody tr:hover {
    background-color: rgba(255,255,255,0.03) !important;
}

/* Dropdowns & Modals */
.dropdown-menu, .modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.dropdown-item {
    color: var(--text-dark) !important;
}
.dropdown-item:hover {
    background-color: rgba(255,255,255,0.05) !important;
    color: white !important;
}
.modal-header, .modal-footer {
    border-color: var(--border-color);
}

/* Accordion */
.accordion-item {
    background-color: transparent;
    border-color: var(--border-color) !important;
}
.accordion-button {
    background-color: rgba(255,255,255,0.02) !important;
    color: var(--text-dark) !important;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary) !important;
    box-shadow: inset 0 -1px 0 var(--border-color);
}

/* Global Bootstrap Utility Overrides for Dark Mode */
.bg-white {
    background-color: var(--bg-card) !important;
}
.bg-light {
    background-color: rgba(255,255,255,0.02) !important;
}
.text-dark {
    color: var(--text-dark) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.border, .border-top, .border-bottom, .border-start, .border-end {
    border-color: var(--border-color) !important;
}
.border-light {
    border-color: rgba(255,255,255,0.05) !important;
}
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}
.shadow {
    box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Announcement Marquee */
.marquee-container {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.marquee-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    z-index: 2;
    background: var(--bg-card);
    padding: 0 10px 0 0;
}
.marquee-content {
    white-space: nowrap;
    animation: scroll-marquee 20s linear infinite;
    font-weight: 500;
    color: var(--text-dark);
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes scroll-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Quick Action Glow */
.quick-action-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05)) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    position: relative;
    overflow: hidden;
}
.quick-action-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    z-index: 0;
}
@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}
.quick-action-content {
    position: relative;
    z-index: 1;
}
