/* ================================================================
   MOMON - Consolidated Stylesheet
   All styles moved from inline <style> blocks in PHP files
   ================================================================ */

/* ===== MULTI-THEME VARIABLE ARCHITECTURE ===== */

/* DEFAULT: CLASSIC DARK */
:root, body.theme-dark {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-shadow: rgba(99, 102, 241, 0.3);
    --bg: #0b0f19;
    --bg-gradient: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                  radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
                  radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    --sidebar-bg: #111827;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-contrast: #ffffff;
    --accent: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --stat-green: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(16, 185, 129, 0.2) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(245, 158, 11, 0.2) 100%);
    
    /* Input Form controls */
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.08);
    --input-color: #ffffff;
    --input-focus-bg: rgba(15, 23, 42, 0.8);
    
    /* Table styling */
    --table-header-bg: #111827;
    --table-hover-bg: rgba(255, 255, 255, 0.02);
    
    /* Small Buttons */
    --btn-sm-bg: rgba(255, 255, 255, 0.05);
    --btn-sm-color: #ffffff;
    --btn-sm-border: rgba(255, 255, 255, 0.1);
    --btn-sm-hover-bg: rgba(255, 255, 255, 0.1);
    
    /* Danger Buttons */
    --btn-danger-bg: rgba(239, 68, 68, 0.1);
    --btn-danger-color: #fca5a5;
    --btn-danger-hover-bg: #ef4444;
    --btn-danger-hover-color: #ffffff;
    
    /* Scrollbars */
    --scrollbar-track: #111827;
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.2);
}

/* THEME: LIGHT CLASSIC */
body.theme-light {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-shadow: rgba(79, 70, 229, 0.2);
    --bg: #f1f5f9;
    --bg-gradient: radial-gradient(at 0% 0%, hsla(220,100%,98%,1) 0, transparent 50%), 
                  radial-gradient(at 50% 0%, hsla(210,100%,95%,1) 0, transparent 50%);
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.06);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-contrast: #ffffff;
    --accent: #6366f1;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --stat-green: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(16, 185, 129, 0.15) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 158, 11, 0.15) 100%);
    
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-color: #1e293b;
    --input-focus-bg: #ffffff;
    
    --table-header-bg: #f8fafc;
    --table-hover-bg: #f1f5f9;
    
    --btn-sm-bg: #ffffff;
    --btn-sm-color: #1e293b;
    --btn-sm-border: #e2e8f0;
    --btn-sm-hover-bg: #f1f5f9;
    
    --btn-danger-bg: rgba(220, 38, 38, 0.08);
    --btn-danger-color: #dc2626;
    --btn-danger-hover-bg: #dc2626;
    --btn-danger-hover-color: #ffffff;
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: rgba(0, 0, 0, 0.15);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.25);
}

/* THEME: OCEAN BREEZE */
body.theme-ocean {
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --primary-shadow: rgba(6, 182, 212, 0.3);
    --bg: #020617;
    --bg-gradient: radial-gradient(at 0% 0%, #082f49 0%, transparent 60%), 
                  radial-gradient(at 100% 0%, #0f172a 0%, transparent 60%);
    --sidebar-bg: #070e24;
    --card-bg: #0b192c;
    --card-border: rgba(6, 182, 212, 0.15);
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --text-contrast: #0f172a;
    --accent: #38bdf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --stat-green: linear-gradient(135deg, rgba(11, 25, 44, 0.7) 0%, rgba(16, 185, 129, 0.2) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(11, 25, 44, 0.7) 0%, rgba(245, 158, 11, 0.2) 100%);
    
    --input-bg: rgba(3, 7, 18, 0.5);
    --input-border: rgba(6, 182, 212, 0.15);
    --input-color: #f8fafc;
    --input-focus-bg: rgba(3, 7, 18, 0.8);
    
    --table-header-bg: #070e24;
    --table-hover-bg: rgba(6, 182, 212, 0.04);
    
    --btn-sm-bg: rgba(6, 182, 212, 0.08);
    --btn-sm-color: #38bdf8;
    --btn-sm-border: rgba(6, 182, 212, 0.2);
    --btn-sm-hover-bg: rgba(6, 182, 212, 0.18);
    
    --btn-danger-bg: rgba(239, 68, 68, 0.1);
    --btn-danger-color: #fca5a5;
    --btn-danger-hover-bg: #ef4444;
    --btn-danger-hover-color: #ffffff;
    
    --scrollbar-track: var(--sidebar-bg);
    --scrollbar-thumb: rgba(6, 182, 212, 0.2);
    --scrollbar-thumb-hover: rgba(6, 182, 212, 0.4);
}

/* THEME: DRACULA */
body.theme-dracula {
    --primary: #ff79c6;
    --primary-hover: #ff92df;
    --primary-shadow: rgba(255, 121, 198, 0.3);
    --bg: #1e1e2e;
    --bg-gradient: radial-gradient(at 0% 0%, #1e1b4b 0%, transparent 50%), 
                  radial-gradient(at 100% 0%, #311042 0%, transparent 50%);
    --sidebar-bg: #181825;
    --card-bg: #2b2a3a;
    --card-border: rgba(255, 121, 198, 0.15);
    --text-main: #f8f8f2;
    --text-muted: #a6adc8;
    --text-contrast: #1e1e2e;
    --accent: #bd93f9;
    --success: #50fa7b;
    --warning: #f1fa8c;
    --danger: #ff5555;
    --stat-green: linear-gradient(135deg, rgba(43, 42, 58, 0.7) 0%, rgba(80, 250, 123, 0.2) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(43, 42, 58, 0.7) 0%, rgba(241, 250, 140, 0.2) 100%);
    
    --input-bg: rgba(30, 30, 46, 0.6);
    --input-border: rgba(189, 147, 249, 0.15);
    --input-color: #f8f8f2;
    --input-focus-bg: rgba(30, 30, 46, 0.8);
    
    --table-header-bg: #181825;
    --table-hover-bg: rgba(255, 121, 198, 0.04);
    
    --btn-sm-bg: rgba(255, 121, 198, 0.08);
    --btn-sm-color: #ff79c6;
    --btn-sm-border: rgba(255, 121, 198, 0.2);
    --btn-sm-hover-bg: rgba(255, 121, 198, 0.18);
    
    --btn-danger-bg: rgba(255, 85, 85, 0.1);
    --btn-danger-color: #ff5555;
    --btn-danger-hover-bg: #ff5555;
    --btn-danger-hover-color: #ffffff;
    
    --scrollbar-track: var(--sidebar-bg);
    --scrollbar-thumb: rgba(255, 121, 198, 0.2);
    --scrollbar-thumb-hover: rgba(255, 121, 198, 0.4);
}

/* ===== THEME: CYBERPUNK ===== */
body.theme-cyberpunk {
    --primary: #ff007f;
    --primary-hover: #ff3399;
    --primary-shadow: rgba(255, 0, 127, 0.4);
    --bg: #000000;
    --bg-gradient: radial-gradient(at 0% 0%, #1c0024 0%, transparent 60%), 
                  radial-gradient(at 100% 100%, #001f24 0%, transparent 60%);
    --sidebar-bg: #0d0d0d;
    --card-bg: #121212;
    --card-border: rgba(0, 240, 255, 0.25);
    --text-main: #00ff66;
    --text-muted: #00f0ff;
    --text-contrast: #000000;
    --accent: #00f0ff;
    --success: #00ff66;
    --warning: #ffff00;
    --danger: #ff0033;
    --stat-green: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(0, 255, 102, 0.15) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(255, 255, 0, 0.15) 100%);
    
    --input-bg: #000000;
    --input-border: rgba(0, 240, 255, 0.25);
    --input-color: #00ff66;
    --input-focus-bg: #050505;
    
    --table-header-bg: #0d0d0d;
    --table-hover-bg: rgba(0, 240, 255, 0.08);
    
    --btn-sm-bg: #000000;
    --btn-sm-color: #00f0ff;
    --btn-sm-border: rgba(0, 240, 255, 0.25);
    --btn-sm-hover-bg: rgba(0, 240, 255, 0.15);
    
    --btn-danger-bg: rgba(255, 0, 51, 0.1);
    --btn-danger-color: #ff0033;
    --btn-danger-hover-bg: #ff0033;
    --btn-danger-hover-color: #ffffff;
    
    --scrollbar-track: var(--sidebar-bg);
    --scrollbar-thumb: rgba(0, 240, 255, 0.3);
    --scrollbar-thumb-hover: rgba(0, 240, 255, 0.5);
}

/* ===== THEME: EMERALD FOREST ===== */
body.theme-forest {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-shadow: rgba(16, 185, 129, 0.3);
    --bg: #060f0e;
    --bg-gradient: radial-gradient(at 0% 0%, #022c22 0%, transparent 50%), 
                  radial-gradient(at 100% 0%, #064e3b 0%, transparent 50%);
    --sidebar-bg: #091614;
    --card-bg: #11221f;
    --card-border: rgba(16, 185, 129, 0.15);
    --text-main: #ecfdf5;
    --text-muted: #86efac;
    --text-contrast: #060f0e;
    --accent: #34d399;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --stat-green: linear-gradient(135deg, rgba(17, 34, 31, 0.7) 0%, rgba(16, 185, 129, 0.2) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(17, 34, 31, 0.7) 0%, rgba(245, 158, 11, 0.2) 100%);
    
    --input-bg: rgba(6, 15, 14, 0.6);
    --input-border: rgba(16, 185, 129, 0.15);
    --input-color: #ecfdf5;
    --input-focus-bg: rgba(6, 15, 14, 0.8);
    
    --table-header-bg: #091614;
    --table-hover-bg: rgba(16, 185, 129, 0.04);
    
    --btn-sm-bg: rgba(16, 185, 129, 0.08);
    --btn-sm-color: #34d399;
    --btn-sm-border: rgba(16, 185, 129, 0.2);
    --btn-sm-hover-bg: rgba(16, 185, 129, 0.18);
    
    --btn-danger-bg: rgba(239, 68, 68, 0.1);
    --btn-danger-color: #fca5a5;
    --btn-danger-hover-bg: #ef4444;
    --btn-danger-hover-color: #ffffff;
    
    --scrollbar-track: var(--sidebar-bg);
    --scrollbar-thumb: rgba(16, 185, 129, 0.2);
    --scrollbar-thumb-hover: rgba(16, 185, 129, 0.4);
}

/* ===== THEME: SUNSET GLOW ===== */
body.theme-sunset {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-shadow: rgba(249, 115, 22, 0.3);
    --bg: #0f0b08;
    --bg-gradient: radial-gradient(at 0% 0%, #431407 0%, transparent 50%), 
                  radial-gradient(at 100% 0%, #1e1b4b 0%, transparent 50%);
    --sidebar-bg: #160f0b;
    --card-bg: #231711;
    --card-border: rgba(249, 115, 22, 0.15);
    --text-main: #fffaf8;
    --text-muted: #fdba74;
    --text-contrast: #0f0b08;
    --accent: #fb923c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --stat-green: linear-gradient(135deg, rgba(35, 23, 17, 0.7) 0%, rgba(16, 185, 129, 0.2) 100%);
    --stat-yellow: linear-gradient(135deg, rgba(35, 23, 17, 0.7) 0%, rgba(245, 158, 11, 0.2) 100%);
    
    --input-bg: rgba(15, 11, 8, 0.6);
    --input-border: rgba(249, 115, 22, 0.15);
    --input-color: #fffaf8;
    --input-focus-bg: rgba(15, 11, 8, 0.8);
    
    --table-header-bg: #160f0b;
    --table-hover-bg: rgba(249, 115, 22, 0.04);
    
    --btn-sm-bg: rgba(249, 115, 22, 0.08);
    --btn-sm-color: #fb923c;
    --btn-sm-border: rgba(249, 115, 22, 0.2);
    --btn-sm-hover-bg: rgba(249, 115, 22, 0.18);
    
    --btn-danger-bg: rgba(239, 68, 68, 0.1);
    --btn-danger-color: #fca5a5;
    --btn-danger-hover-bg: #ef4444;
    --btn-danger-hover-color: #ffffff;
    
    --scrollbar-track: var(--sidebar-bg);
    --scrollbar-thumb: rgba(249, 115, 22, 0.2);
    --scrollbar-thumb-hover: rgba(249, 115, 22, 0.4);
}

/* ===== GENERAL THEME INLINE OVERRIDES ===== */
body[class*="theme-"] [style*="color:white"],
body[class*="theme-"] [style*="color: white"],
body[class*="theme-"] [style*="color:#fff"],
body[class*="theme-"] [style*="color: #fff"] {
    color: var(--text-main) !important;
}

body[class*="theme-"] .btn-primary[style*="color:white"],
body[class*="theme-"] .btn-primary[style*="color:#fff"],
body[class*="theme-"] .btn-primary[style*="color: white"],
body[class*="theme-"] [style*="background:#25D366"][style*="color:#fff"],
body[class*="theme-"] [style*="background:#25D366"][style*="color:white"],
body[class*="theme-"] [style*="background:#ef4444"][style*="color:white"],
body[class*="theme-"] [style*="background:#ef4444"][style*="color:#fff"],
body[class*="theme-"] [style*="background:var(--primary)"][style*="color:white"],
body[class*="theme-"] [style*="background:#6366f1"][style*="color:white"] {
    color: #ffffff !important;
}

body[class*="theme-"] [style*="background:rgba(255,255,255,0.05)"],
body[class*="theme-"] [style*="background: rgba(255,255,255,0.05)"],
body[class*="theme-"] [style*="background:rgba(255,255,255,0.03)"],
body[class*="theme-"] [style*="background: rgba(255,255,255,0.03)"],
body[class*="theme-"] [style*="background:rgba(255,255,255,0.02)"],
body[class*="theme-"] [style*="background:rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="background: rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="background:rgba(255, 255, 255, 0.1)"],
body[class*="theme-"] [style*="background:rgba(255, 255, 255, 0.05)"] {
    background: var(--btn-sm-bg) !important;
    border-color: var(--card-border) !important;
}

body[class*="theme-"] [style*="border:1px solid rgba(255,255,255,0.05)"],
body[class*="theme-"] [style*="border: 1px solid rgba(255,255,255,0.05)"],
body[class*="theme-"] [style*="border-color: rgba(255,255,255,0.05)"],
body[class*="theme-"] [style*="border:1px solid rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="border: 1px solid rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="border:1px solid rgba(255, 255, 255, 0.1)"],
body[class*="theme-"] [style*="border:1px solid rgba(255,255,255,0.2)"],
body[class*="theme-"] [style*="border: 1px solid rgba(255,255,255,0.2)"],
body[class*="theme-"] [style*="border:1px solid rgba(255, 255, 255, 0.2)"],
body[class*="theme-"] [style*="border-bottom: 1px solid rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="border-bottom:1px solid rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="border-top: 1px solid rgba(255,255,255,0.1)"],
body[class*="theme-"] [style*="border-top:1px solid rgba(255,255,255,0.1)"] {
    border-color: var(--card-border) !important;
}

body[class*="theme-"] [style*="background:rgba(0,0,0,0.3)"],
body[class*="theme-"] [style*="background: rgba(0,0,0,0.3)"],
body[class*="theme-"] [style*="background:rgba(0,0,0,0.2)"],
body[class*="theme-"] [style*="background: rgba(0,0,0,0.2)"],
body[class*="theme-"] [style*="background:rgba(15, 23, 42"],
body[class*="theme-"] [style*="background:rgba(15,23,42"],
body[class*="theme-"] [style*="background:rgba(0,0,0,0.6)"] {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
}

/* Dynamic styling for theme states */
body.theme-light h1, body.theme-light h2, body.theme-light h3, body.theme-light h4 { color: var(--text-main) !important; }
body select.form-control option { background-color: var(--card-bg) !important; color: var(--text-main) !important; }
select option { background-color: var(--card-bg) !important; color: var(--text-main) !important; }
body.theme-light select option { background-color: var(--card-bg) !important; color: var(--text-main) !important; }

/* Dynamic scrollbar */
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg); background-image: var(--bg-gradient); color: var(--text-main); display: flex; min-height: 100vh; overflow-x: hidden; }

/* ================================================================
   LAYOUT: Sidebar
   ================================================================ */
.sidebar { width: 260px; background-color: var(--sidebar-bg); border-right: 1px solid var(--card-border); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 10000; }
.sidebar-header { padding: 30px; text-align: center; }
.sidebar-header h2 { font-size: 1.8rem; background: linear-gradient(to right, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.sidebar-menu { flex: 1; padding: 20px; overflow-y: auto; }
.menu-item { padding: 12px 15px; border-radius: 12px; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; margin-bottom: 8px; transition: all 0.3s; font-size: 0.95rem; }
.menu-item i { margin-right: 12px; width: 20px; font-size: 1.1rem; }
.sidebar-footer { padding: 20px; border-top: 1px solid var(--card-border); }
.menu-item:hover, .menu-item.active { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.menu-item.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; filter: grayscale(0.8); }

/* ===== Main Content ===== */
.main-content { margin-left: 260px; flex: 1; padding: 40px; min-width: 0; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

/* ===== Components ===== */
.glass-card { background: var(--card-bg); border-radius: 20px; border: 1px solid var(--card-border); padding: 25px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.glass-card[onclick]:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3); border-color: var(--accent) !important; cursor: pointer; }
.glass-card[onclick]:active { transform: translateY(-2px); }
.table-container { width: 100%; overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 15px; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; border-bottom: 1px solid var(--card-border); }
td { padding: 15px; border-bottom: 1px solid var(--card-border); font-size: 0.9rem; }
tr:hover { background: var(--table-hover-bg); }

.btn { padding: 10px 20px; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: var(--text-contrast); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-shadow); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-danger { background: var(--btn-danger-bg); color: var(--btn-danger-color); }
.btn-danger:hover { background: var(--btn-danger-hover-bg); color: var(--btn-danger-hover-color); }

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-online { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-offline { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
#fullScreenBtn:hover { background: var(--btn-sm-hover-bg) !important; transform: scale(1.05); }

.form-control { width: 100%; background: var(--input-bg); border: 1px solid var(--input-border); padding: 12px; border-radius: 12px; color: var(--input-color); margin-bottom: 15px; transition: all 0.3s ease; }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-shadow); }
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

/* ===== Sidebar Category Headers ===== */
.menu-category-header { margin: 25px 15px 10px; font-size: 0.7rem; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; gap: 10px; opacity: 0.8; }
.menu-category-header::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--primary-shadow), transparent); }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* ===== Custom Select Dropdown ===== */
body select.form-control { background-color: var(--input-bg) !important; color: var(--input-color) !important; -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important; border-radius: 12px !important; border: 1px solid var(--input-border) !important; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cbd5e1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important; background-repeat: no-repeat !important; background-position: right 1rem center !important; background-size: 0.8rem auto !important; padding-right: 2.5rem !important; padding-left: 12px !important; padding-top: 10px !important; padding-bottom: 10px !important; min-height: 42px !important; }
select.form-control option { background-color: var(--card-bg); color: var(--text-main); padding: 10px; }
select option { background-color: var(--card-bg) !important; color: var(--text-main) !important; }
body.theme-light select option { background-color: #ffffff !important; color: #1e293b !important; }

/* ===== Utility Classes ===== */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ===== Modal Animation ===== */
@keyframes popIn { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
#globalModal .glass-card { width: 90%; max-width: 400px; text-align: center; padding: 40px; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* ===== Mobile Responsive ===== */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0 !important; padding: 15px !important; }
    .top-bar { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
    .top-bar-right { width: 100%; justify-content: flex-end; display: flex; align-items: center; gap: 10px; }
    .hamburger { display: flex !important; }
    .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 9999; }
    .sidebar-overlay.active { display: block; }
    h1 { font-size: 1.3rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.1rem; }
    .top-bar p { font-size: 0.8rem; }
    .hide-mobile { display: none !important; }
    .grid-2-col, .grid-3-col { grid-template-columns: 1fr !important; gap: 15px !important; }
    .grid-4-col { grid-template-columns: 1fr 1fr !important; gap: 15px !important; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 15px; }
    .flex-between .btn { width: 100%; justify-content: center; }
    .glass-card { padding: 20px !important; }
}

.hamburger { display: none; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; color: white; font-size: 1.1rem; margin-right: 12px; }

@media (max-width: 600px) {
    .grid-mobile-2 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .grid-mobile-2 h3 { font-size: 1rem !important; }
    .grid-mobile-2 p { font-size: 0.8rem !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .stats-grid > div { min-height: 120px !important; padding-top: 20px !important; }
    .stats-grid h3 { font-size: 0.75rem !important; }
    .stats-grid p, .stats-grid [id^="stat_"] div { font-size: 1rem !important; }
    .glass-card { padding: 15px !important; }
    .table-container { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; width: calc(100% + 30px); }
}

.stats-flex-responsive { display: flex; align-items: center; gap: 15px; }
@media (max-width: 600px) { .stats-flex-responsive { flex-direction: column; text-align: center; gap: 10px !important; } }

/* ===== Progress Bar ===== */
#topProgressBar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(to right, var(--primary), #c084fc); z-index: 9999; width: 0%; transition: width 0.3s ease; box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }

/* ===== Skeleton Loader ===== */
@keyframes skeleton-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: 8px; display: inline-block; }
.skeleton-text { height: 1.2rem; width: 100%; margin-bottom: 10px; }
.skeleton-rect { height: 200px; width: 100%; }
.skeleton-circle { width: 40px; height: 40px; border-radius: 50%; }
.content-loading { opacity: 0.5; pointer-events: none; filter: blur(2px); transition: all 0.3s ease; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: #fbbf24; border-radius: 50%; animation: spin 0.4s linear infinite; margin-left: 12px; vertical-align: middle; box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }

/* ===== Flatpickr Global ===== */
.flatpickr-calendar { background: #1e293b !important; box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important; border: 1px solid rgba(255,255,255,0.15) !important; border-radius: 16px !important; z-index: 99999 !important; color: #fff !important; }
.flatpickr-day { color: #cbd5e1 !important; }
.flatpickr-day:hover { background: rgba(255,255,255,0.1) !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.flatpickr-day.inRange { background: rgba(99, 102, 241, 0.25) !important; box-shadow: -5px 0 0 rgba(99, 102, 241, 0.25), 5px 0 0 rgba(99, 102, 241, 0.25) !important; color: #fff !important; border-radius: 0 !important; }
.flatpickr-current-month, .flatpickr-current-month .flatpickr-monthDropdown-months { color: #fff !important; font-weight: 700 !important; }
.flatpickr-monthDropdown-months { background: #1e293b !important; color: #fff !important; }
.flatpickr-weekday { color: #94a3b8 !important; font-weight: 600 !important; }

/* ===== Dashboard Custom Classes ===== */
.welcome-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.wa-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.wa-header-badges { display: flex; gap: 10px; align-items: center; }

@media screen and (max-width: 900px) {
    #trafficChart { height: 200px !important; }
    #btnSendWA { margin-top: 10px !important; margin-bottom: 20px !important; }
    .grid-mobile-2 { gap: 10px !important; }
    .welcome-header { flex-direction: column !important; align-items: stretch !important; gap: 15px !important; }
    .welcome-header > div { margin-bottom: 0px !important; }
    .welcome-header .btn, .welcome-header a.btn { width: 100% !important; margin-top: 15px !important; justify-content: center !important; display: flex !important; }
    .wa-header { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .wa-header-badges { display: grid !important; grid-template-columns: 1fr 1fr !important; width: 100% !important; gap: 15px !important; margin-top: 10px !important; }
    .wa-header-badges span { display: flex !important; justify-content: center !important; width: 100% !important; text-align: center; margin: 0 !important; }
}

/* ================================================================
   PAGE: Dashboard - welcome header responsive
   ================================================================ */
@media screen and (max-width: 1024px) {
    html body .welcome-header { display: block !important; width: 100% !important; margin-bottom: 20px !important; }
    html body .welcome-header > div { display: block !important; width: 100% !important; margin-bottom: 15px !important; }
    html body .welcome-header .mobile-block-btn { display: flex !important; width: 100% !important; margin: 0 !important; justify-content: center !important; text-align: center !important; }
    html body .wa-header { display: block !important; width: 100% !important; margin-bottom: 20px !important; }
    html body .wa-header h2 { display: block !important; width: 100% !important; text-align: left !important; margin-bottom: 15px !important; }
    html body .wa-header-badges { display: grid !important; grid-template-columns: 1fr 1fr !important; width: 100% !important; gap: 15px !important; margin: 0 !important; }
    html body .wa-header-badges span { display: flex !important; justify-content: center !important; width: 100% !important; margin: 0 !important; text-align: center !important; }
}

/* ================================================================
   PAGE: Reports - Filter Form
   ================================================================ */
.momon-filter-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; width: 100%; }
.momon-input-main { display: flex; gap: 10px; flex: 1.2; min-width: 300px; align-items: center; margin: 0 !important; padding: 0 !important; }
.momon-input-group { position: relative; flex: 1; height: 45px !important; margin: 0 !important; }
.momon-input-group .form-control { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; cursor: pointer !important; padding-left: 45px !important; height: 45px !important; font-weight: 600 !important; width: 100% !important; border-radius: 10px !important; color: var(--text-main) !important; margin: 0 !important; box-sizing: border-box !important; }
.momon-input-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.1rem; pointer-events: none; z-index: 10; }
.btn-filter-main { height: 45px !important; padding: 0 25px; font-weight: 800; border-radius: 10px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; border: none; margin: 0 !important; line-height: 1; box-sizing: border-box !important; }
.momon-separator { width: 1px; height: 35px; background: rgba(255,255,255,0.1); margin: 0 5px; }
.momon-presets { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; justify-content: flex-end; }
.btn-preset { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 0 15px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); height: 45px !important; display: flex; align-items: center; justify-content: center; line-height: 1; }
.btn-preset:hover { background: rgba(99, 102, 241, 0.1); color: var(--primary); border-color: var(--primary); }
.btn-preset.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-reset-style { text-decoration: none; background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); gap: 5px; }

/* Light Theme overrides for filter form */
body.theme-light .momon-input-group .form-control { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; color: #1e293b !important; }
body.theme-light .momon-separator { background: rgba(0, 0, 0, 0.1); }
body.theme-light .btn-preset { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; }
body.theme-light .btn-preset:hover { background: rgba(99, 102, 241, 0.08); color: var(--primary); }
body.theme-light .btn-reset-style { background: rgba(239, 68, 68, 0.08); color: #dc2626; border-color: rgba(239, 68, 68, 0.2); }

@media (max-width: 768px) {
    .momon-separator { display: none; }
    .momon-input-main { min-width: 100%; }
}

/* ===== Reports: Summary Cards ===== */
.report-card-green { background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(16, 185, 129, 0.2) 100%); }
.report-card-green .report-icon { background: rgba(16, 185, 129, 0.2); }
.report-card-green .report-icon i { color: #34d399; }
.report-card-green h3 { color: #34d399; }
.report-card-indigo { background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(99, 102, 241, 0.2) 100%); }
.report-card-indigo .report-icon { background: rgba(99, 102, 241, 0.2); }
.report-card-indigo .report-icon i { color: #818cf8; }
.report-card-indigo h3 { color: #818cf8; }
body.theme-light .report-card-green { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(16, 185, 129, 0.15) 100%) !important; }
body.theme-light .report-card-green .report-icon { background: rgba(16, 185, 129, 0.12); }
body.theme-light .report-card-green .report-icon i { color: #059669 !important; }
body.theme-light .report-card-green h3 { color: #059669 !important; }
body.theme-light .report-card-indigo { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(99, 102, 241, 0.15) 100%) !important; }
body.theme-light .report-card-indigo .report-icon { background: rgba(99, 102, 241, 0.12); }
body.theme-light .report-card-indigo .report-icon i { color: #4f46e5 !important; }
body.theme-light .report-card-indigo h3 { color: #4f46e5 !important; }
.report-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.report-icon i { font-size: 1.5rem; }
.radio-card { flex: 1; min-width: 150px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 12px; cursor: pointer; transition: all 0.3s; position: relative; }
.radio-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(99, 102, 241, 0.5); }
.radio-card.selected { background: rgba(99, 102, 241, 0.15); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.radio-card input { display: none; }
.radio-card .fw-bold { font-weight: 700; margin-bottom: 5px; }
.radio-card .small { font-size: 0.8rem; opacity: 0.7; }

/* Gateway: Loading & Error */
.gw-fetch-loading { color: #94a3b8; font-size: 0.85rem; padding: 10px 0; }
.gw-fetch-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); border-radius: 10px; padding: 12px 16px; font-size: 0.85rem; color: #fca5a5; }

/* Gateway: Method Grid */
.gw-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gw-method-card { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 14px 8px 10px; text-align: center; cursor: pointer; transition: all 0.22s ease; position: relative; user-select: none; }
.gw-method-card:hover { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.35); transform: translateY(-2px); }
.gw-method-card.selected { background: rgba(99,102,241,0.14); border-color: #6366f1; box-shadow: 0 0 0 1.5px #6366f1; }
.gw-method-cb { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.gw-method-img { width: 52px; height: 28px; object-fit: contain; margin-bottom: 8px; filter: brightness(1.05); }
.gw-method-icon { font-size: 1.5rem; color: #a5b4fc; margin-bottom: 8px; }
.gw-method-name { font-size: 0.72rem; font-weight: 600; color: #f1f5f9; line-height: 1.35; }
.gw-method-sub { font-size: 0.65rem; color: #64748b; margin-top: 3px; line-height: 1.3; }
.gw-method-check { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; background: #6366f1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #fff; opacity: 0; transform: scale(0.6); transition: all 0.2s ease; }
.gw-method-card.selected .gw-method-check { opacity: 1; transform: scale(1); }

/* ================================================================
   PAGE: Cleanup Duplicates
   ================================================================ */
.cleanup-card { background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 25px; margin-bottom: 25px; }
.stat-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 20px; text-align: center; }
.stat-box h2 { font-size: 2rem; margin: 10px 0; color: var(--primary); }
.stat-box p { color: var(--text-muted); font-size: 0.9rem; }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 12px; padding: 15px; color: #fbbf24; margin-bottom: 20px; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 12px; padding: 15px; color: #34d399; margin-bottom: 20px; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 12px; padding: 15px; color: #f87171; margin-bottom: 20px; }
.duplicate-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 15px; margin-bottom: 15px; }
.badge-keep { background: rgba(16, 185, 129, 0.2); color: #34d399; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.badge-delete { background: rgba(239, 68, 68, 0.2); color: #f87171; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }

/* ================================================================
   PAGE: Auto Update Profiles
   ================================================================ */
.update-card { background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 25px; margin-bottom: 25px; }
.profile-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 15px; margin-bottom: 12px; transition: all 0.2s; }
.profile-item.warning-mode { border-left: 3px solid #fbbf24; background: rgba(245, 158, 11, 0.05); }
.profile-item.warning-price { border-left: 3px solid #f87171; background: rgba(239, 68, 68, 0.05); }
.badge-mode { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-ok { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-upgrade { background: rgba(99, 102, 241, 0.2); color: #818cf8; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }
.btn-primary-large { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: white; border: none; padding: 15px 30px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4); width: 100%; }
.btn-primary-large:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5); }

/* ================================================================
   COMPONENT: Toggle Switch
   ================================================================ */
.toggle-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.1); transition: all 0.3s ease; border-radius: 28px; border: 1px solid rgba(255,255,255,0.1); }
.toggle-slider:before { position: absolute; content: ''; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #94a3b8; transition: all 0.3s ease; border-radius: 50%; }
.toggle-switch input:checked + .toggle-slider { background: rgba(99, 102, 241, 0.3); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(24px); background: var(--primary); box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
body.theme-light .toggle-slider { background: #e2e8f0; border-color: #cbd5e1; }
body.theme-light .toggle-slider:before { background: #94a3b8; }
body.theme-light .toggle-switch input:checked + .toggle-slider { background: rgba(99, 102, 241, 0.15); border-color: var(--primary); }
body.theme-light .toggle-switch input:checked + .toggle-slider:before { background: var(--primary); }
