/* ===== NOC Dashboard CSS v2.1 ===== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1525;
    --bg-card: rgba(15, 21, 37, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #06b6d4;
    --sidebar-width: 280px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; }

.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: 0; }

/* Orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; opacity: 0.15; }
.orb-1 { width: 400px; height: 400px; background: var(--accent-primary); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: -50px; left: -50px; }

/* Mobile Header */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: rgba(10,14,26,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 0 16px; align-items: center; justify-content: space-between; }
.mobile-menu-btn { background: none; border: none; color: var(--text-primary); font-size: 20px; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mobile-brand img { width: 32px; height: 32px; border-radius: 8px; }
.mobile-badge { position: absolute; top: 8px; right: 8px; background: var(--accent-danger); color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 700; }

/* Sidebar */
.sidebar { width: var(--sidebar-width); background: rgba(15,21,37,0.95); backdrop-filter: blur(20px); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 999; transition: transform 0.3s ease; overflow-y: auto; }
.sidebar-header { padding: 24px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.logo-section { display: flex; align-items: center; gap: 14px; }
.logo-container { position: relative; width: 48px; height: 48px; }
.logo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-primary), #8b5cf6); border-radius: 12px; opacity: 0.2; }
.logo-img { position: relative; width: 48px; height: 48px; object-fit: contain; padding: 4px; }
.brand-text h1 { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; background: linear-gradient(135deg, var(--accent-primary), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-text span { font-size: 12px; color: #64748b; letter-spacing: 1px; text-transform: uppercase; }
.sidebar-close { display: none; background: none; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; padding: 8px; margin-left: auto; }

.nav-menu { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-title { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 1.5px; padding: 0 12px; margin-bottom: 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 2px 0; border-radius: 12px; color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s ease; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nav-item.active { background: linear-gradient(90deg, rgba(59,130,246,0.15), transparent); color: var(--accent-primary); border-left: 3px solid var(--accent-primary); }
.nav-badge { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; background: rgba(255,255,255,0.1); }
.nav-badge.success { background: rgba(16,185,129,0.2); color: var(--accent-success); }
.nav-badge.warning { background: rgba(245,158,11,0.2); color: var(--accent-warning); }
.nav-badge.danger { background: rgba(239,68,68,0.2); color: var(--accent-danger); }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border-color); margin-top: auto; }
.user-info { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-primary), #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; }
.btn-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--accent-danger); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.15s ease; }
.btn-logout:hover { background: rgba(239,68,68,0.2); }

/* Main Content */
.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 24px 32px; min-height: 100vh; position: relative; z-index: 1; }
.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 16px; }
.page-title h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.page-subtitle { font-size: 14px; color: #64748b; margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--accent-success); }
.status-dot { width: 8px; height: 8px; background: var(--accent-success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }

.btn-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: all 0.15s ease; position: relative; }
.btn-icon:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); transform: translateY(-2px); }
.notification-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-danger); color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 700; display: none; }
.notification-badge.show { display: block; }

/* Sections */
.section-content { display: none; animation: fadeIn 0.4s ease; }
.section-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.stat-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.stat-glow { position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; border-radius: 50%; opacity: 0.1; pointer-events: none; }
.stat-glow.primary { background: radial-gradient(circle, var(--accent-primary), transparent 70%); }
.stat-glow.success { background: radial-gradient(circle, var(--accent-success), transparent 70%); }
.stat-glow.warning { background: radial-gradient(circle, var(--accent-warning), transparent 70%); }
.stat-glow.danger { background: radial-gradient(circle, var(--accent-danger), transparent 70%); }
.stat-glow.info { background: radial-gradient(circle, var(--accent-info), transparent 70%); }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon.primary { background: rgba(59,130,246,0.15); color: var(--accent-primary); }
.stat-icon.success { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.stat-icon.warning { background: rgba(245,158,11,0.15); color: var(--accent-warning); }
.stat-icon.danger { background: rgba(239,68,68,0.15); color: var(--accent-danger); }
.stat-icon.info { background: rgba(6,182,212,0.15); color: var(--accent-info); }
.stat-trend { font-size: 13px; font-weight: 600; }
.stat-trend.up { color: var(--accent-success); }
.stat-trend.down { color: var(--accent-danger); }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 700; margin-bottom: 4px; line-height: 1; }
.stat-label { font-size: 14px; color: #64748b; margin-bottom: 12px; }
.stat-progress { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.stat-progress-bar { height: 100%; background: var(--accent-primary); border-radius: 2px; }
.stat-progress-bar.success { background: var(--accent-success); }
.stat-progress-bar.warning { background: var(--accent-warning); }
.stat-progress-bar.danger { background: var(--accent-danger); }
.stat-progress-bar.info { background: var(--accent-info); }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.content-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.content-grid.three-col { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 12px; }
.card-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--accent-primary); }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 24px; }

/* Buttons */
.btn-sm { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-sm:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-sm.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.btn-sm.btn-primary { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.btn-primary { padding: 12px 24px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--accent-primary), #8b5cf6); color: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(59,130,246,0.3); }

/* Search */
.search-box { position: relative; display: flex; align-items: center; }
.search-box i { position: absolute; left: 12px; color: #64748b; font-size: 14px; }
.search-box input { padding: 8px 12px 8px 36px; border-radius: 8px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-primary); font-size: 13px; width: 200px; transition: all 0.15s ease; }
.search-box input:focus { outline: none; border-color: var(--accent-primary); width: 240px; }
.search-box input::placeholder { color: #64748b; }

/* Charts */
.chart-container { position: relative; height: 300px; width: 100%; }

/* Device List */
.device-list { display: flex; flex-direction: column; gap: 12px; }
.device-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.15s ease; }
.device-item:hover { border-color: rgba(255,255,255,0.15); transform: translateX(4px); }
.device-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.device-status.online { background: var(--accent-success); box-shadow: 0 0 8px rgba(16,185,129,0.3); }
.device-status.offline { background: var(--accent-danger); box-shadow: 0 0 8px rgba(239,68,68,0.3); }
.device-status.warning { background: var(--accent-warning); box-shadow: 0 0 8px rgba(245,158,11,0.3); }
.device-info { flex: 1; min-width: 0; }
.device-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-meta { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ===== CUSTOMER LIST (NEW) ===== */
.customer-list { display: flex; flex-direction: column; gap: 12px; }
.customer-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.15s ease; }
.customer-item:hover { border-color: rgba(255,255,255,0.15); transform: translateX(4px); }
.customer-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-primary), #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 16px; flex-shrink: 0; }
.customer-info { flex: 1; min-width: 0; }
.customer-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.customer-plan { font-size: 12px; color: #64748b; }
.customer-ip { display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-info); background: rgba(6,182,212,0.1); padding: 6px 10px; border-radius: 8px; flex-shrink: 0; }
.customer-ip i { font-size: 10px; }

/* Events */
.event-list { display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow-y: auto; }
.event-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border-left: 3px solid var(--accent-primary); }
.event-item.success { border-left-color: var(--accent-success); }
.event-item.warning { border-left-color: var(--accent-warning); }
.event-item.danger { border-left-color: var(--accent-danger); }
.event-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #64748b; white-space: nowrap; }
.event-title { font-size: 13px; font-weight: 500; }
.event-desc { font-size: 12px; color: #64748b; margin-top: 2px; }

/* Live Indicator */
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent-danger); letter-spacing: 1px; }
.live-dot { width: 8px; height: 8px; background: var(--accent-danger); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Mini Cards */
.mini-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.mini-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mini-card-icon.primary { background: rgba(59,130,246,0.15); color: var(--accent-primary); }
.mini-card-icon.success { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.mini-card-icon.warning { background: rgba(245,158,11,0.15); color: var(--accent-warning); }
.mini-card-value { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; }
.mini-card-label { font-size: 13px; color: #64748b; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; background: var(--bg-card); padding: 8px; border-radius: 12px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.tab { padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all 0.15s ease; border: none; background: none; white-space: nowrap; }
.tab:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.tab.active { background: var(--accent-primary); color: white; box-shadow: 0 4px 12px rgba(59,130,246,0.3); }

/* OLT Grid */
.olt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.olt-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.olt-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.olt-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.olt-card-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.olt-card-status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.olt-card-status.online { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.olt-card-status.offline { background: rgba(239,68,68,0.15); color: var(--accent-danger); }
.olt-card-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.olt-info-item { background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; }
.olt-info-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.olt-info-value { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; margin-top: 4px; }

/* Tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead { background: rgba(255,255,255,0.05); }
.data-table th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; white-space: nowrap; border-bottom: 1px solid var(--border-color); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); white-space: nowrap; position: relative; }
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.data-table code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; color: var(--accent-primary); }
.empty-cell { text-align: center; color: #64748b; padding: 40px !important; }

/* Badges */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-online, .badge-active, .badge-1 { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.badge-offline, .badge-inactive, .badge-0 { background: rgba(239,68,68,0.15); color: var(--accent-danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--accent-warning); }
.badge-info { background: rgba(6,182,212,0.15); color: var(--accent-info); }
.badge-suspended { background: rgba(245,158,11,0.15); color: var(--accent-warning); }

/* Queue Comment */
.queue-comment { font-size: 13px; color: var(--text-secondary); font-style: italic; }

/* Integration */
.integration-header { margin-bottom: 24px; }
.integration-header h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.integration-header p { color: #64748b; font-size: 14px; max-width: 600px; }
.api-card { display: flex; flex-direction: column; }
.api-card.wide { grid-column: span 2; }
.api-visual { display: flex; align-items: center; justify-content: center; padding: 24px 0; margin-bottom: 16px; }
.api-icon-large { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.api-icon-large.primary { background: rgba(59,130,246,0.15); color: var(--accent-primary); box-shadow: 0 0 20px rgba(59,130,246,0.3); }
.connection-line { width: 40px; height: 2px; background: var(--border-color); }
.connection-line.active { background: var(--accent-success); box-shadow: 0 0 8px rgba(16,185,129,0.3); }
.connection-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-color); margin-left: -6px; }
.connection-dot.active { background: var(--accent-success); box-shadow: 0 0 12px rgba(16,185,129,0.3); animation: pulse 2s ease-in-out infinite; }
.olt-api-grid { display: flex; flex-direction: column; gap: 12px; }
.olt-api-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.15s ease; }
.olt-api-item:hover { border-color: rgba(255,255,255,0.15); transform: translateX(4px); }
.olt-api-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.olt-api-status.online { background: var(--accent-success); box-shadow: 0 0 8px rgba(16,185,129,0.3); }
.olt-api-status.warning { background: var(--accent-warning); box-shadow: 0 0 8px rgba(245,158,11,0.3); }
.olt-api-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.olt-api-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.info-card { margin-top: 20px; border-left: 4px solid var(--accent-info); }
.info-message { display: flex; gap: 16px; align-items: flex-start; }
.info-message i { font-size: 24px; color: var(--accent-info); flex-shrink: 0; margin-top: 2px; }
.info-message strong { display: block; margin-bottom: 4px; }
.info-message p { color: #64748b; font-size: 13px; line-height: 1.5; }
.info-message code { background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-primary); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-primary); font-size: 14px; transition: all 0.15s ease; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.3); }
.form-input::placeholder { color: #64748b; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Toggle */
.toggle-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.toggle-item { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid var(--border-color); }
.toggle-title { font-weight: 600; font-size: 14px; }
.toggle-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
.toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border-color); border-radius: 26px; transition: 0.15s ease; }
.toggle-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.15s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--accent-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* Threshold */
.threshold-section { border-top: 1px solid var(--border-color); padding-top: 20px; }
.threshold-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-range { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.05); outline: none; -webkit-appearance: none; margin: 8px 0; }
.form-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-primary); cursor: pointer; box-shadow: 0 0 10px rgba(59,130,246,0.3); }
.range-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent-primary); font-weight: 600; float: right; }

/* Notif History */
.notification-history { display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; }
.notif-history-item { display: flex; gap: 12px; padding: 14px; background: rgba(255,255,255,0.05); border-radius: 12px; border-left: 3px solid var(--accent-primary); }
.notif-history-item.success { border-left-color: var(--accent-success); }
.notif-history-item.warning { border-left-color: var(--accent-warning); }
.notif-history-item.danger { border-left-color: var(--accent-danger); }
.notif-history-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.notif-history-icon.primary { background: rgba(59,130,246,0.15); color: var(--accent-primary); }
.notif-history-icon.success { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.notif-history-icon.warning { background: rgba(245,158,11,0.15); color: var(--accent-warning); }
.notif-history-icon.danger { background: rgba(239,68,68,0.15); color: var(--accent-danger); }

/* ===== DETAIL GRID (NEW for ODP/ODC Detail Modal) ===== */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail-field { background: rgba(255,255,255,0.05); padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border-color); }
.detail-field label { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.detail-value { font-size: 14px; font-weight: 500; color: var(--text-primary); word-break: break-word; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 24px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--border-color); }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.05); border: none; color: #64748b; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.15s ease; }
.modal-close:hover { background: var(--accent-danger); color: white; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 12px; }

/* Settings Panel */
.settings-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1500; }
.settings-overlay.active { display: block; }
.settings-panel { position: fixed; top: 0; right: -400px; width: 400px; max-width: 90vw; height: 100vh; background: var(--bg-secondary); border-left: 1px solid var(--border-color); z-index: 1501; transition: right 0.3s ease; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.settings-panel.active { right: 0; }
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--border-color); }
.settings-header h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.settings-body { padding: 24px; }
.settings-section { margin-bottom: 28px; }
.settings-section h4 { font-size: 14px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.settings-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.settings-item span { font-size: 14px; }

/* Toast */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); animation: slideIn 0.3s ease; pointer-events: all; max-width: 400px; backdrop-filter: blur(20px); }
.toast.success { border-left: 4px solid var(--accent-success); }
.toast.error { border-left: 4px solid var(--accent-danger); }
.toast.warning { border-left: 4px solid var(--accent-warning); }
.toast.info { border-left: 4px solid var(--accent-primary); }
.toast-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.toast.success .toast-icon { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.toast.error .toast-icon { background: rgba(239,68,68,0.15); color: var(--accent-danger); }
.toast.warning .toast-icon { background: rgba(245,158,11,0.15); color: var(--accent-warning); }
.toast.info .toast-icon { background: rgba(59,130,246,0.15); color: var(--accent-primary); }
.toast-title { font-weight: 600; font-size: 14px; }
.toast-message { font-size: 13px; color: #64748b; margin-top: 2px; }
.toast-close { background: none; border: none; color: #64748b; cursor: pointer; font-size: 14px; margin-left: 8px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Skeleton */
.skeleton-loader { height: 60px; background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: skeleton 1.5s ease-in-out infinite; border-radius: 12px; }
.skeleton-loader.card-skeleton { height: 200px; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Empty State */
.empty-state { text-align: center; padding: 40px; color: #64748b; }
.empty-state i { font-size: 48px; margin-bottom: 16px; color: var(--border-color); }
.empty-state p { font-size: 14px; }

/* Sidebar Overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
.sidebar-overlay.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-grid.two-col { grid-template-columns: 1fr; }
    .content-grid.three-col { grid-template-columns: repeat(2, 1fr); }
    .api-card.wide { grid-column: span 1; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .olt-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.active { transform: translateX(0); }
    .sidebar-close { display: block; }
    .main-content { margin-left: 0; padding: 80px 16px 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-value { font-size: 24px; }
    .content-grid.three-col { grid-template-columns: 1fr; }
    .top-bar { flex-direction: column; align-items: flex-start; }
    .page-title h2 { font-size: 18px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .search-box input { width: 140px; }
    .search-box input:focus { width: 160px; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tab { flex-shrink: 0; }
    .customer-item { flex-wrap: wrap; }
    .customer-ip { width: 100%; margin-top: 8px; justify-content: center; }
    .detail-grid { grid-template-columns: 1fr; }
    .toast-container { left: 16px; right: 16px; top: 80px; }
    .toast { max-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .card-actions { width: 100%; justify-content: flex-start; }
    .olt-card-info { grid-template-columns: 1fr; }
}

/* ===== PELANGGAN STYLES ===== */
.ip-badge { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(6,182,212,0.1); color: var(--accent-info); padding: 4px 8px; border-radius: 6px; }
.limit-badge { font-size: 12px; background: rgba(59,130,246,0.1); color: var(--accent-primary); padding: 4px 8px; border-radius: 6px; font-weight: 500; }

/* Aksi Icons */
.aksi-icons { display: flex; align-items: center; gap: 8px; }
.aksi-icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: all 0.15s ease; }
.aksi-icon-btn:hover { transform: translateY(-2px); }
.aksi-icon-btn.restart { color: var(--accent-success); border-color: rgba(16,185,129,0.3); }
.aksi-icon-btn.restart:hover { background: rgba(16,185,129,0.15); }
.aksi-icon-btn.notif { color: var(--accent-primary); border-color: rgba(59,130,246,0.3); }
.aksi-icon-btn.notif:hover { background: rgba(59,130,246,0.15); }

/* Notifikasi Dropdown */
.notif-dropdown { position: relative; display: inline-block; }
.notif-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; padding: 6px 0; min-width: 160px; z-index: 1000; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.notif-menu.show { display: block; }
.notif-menu::before { content: ''; position: absolute; top: -5px; right: 12px; width: 10px; height: 10px; background: var(--bg-secondary); border-left: 1px solid var(--border-color); border-top: 1px solid var(--border-color); transform: rotate(45deg); }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--text-primary); cursor: pointer; transition: all 0.15s ease; white-space: nowrap; }
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item i { width: 16px; text-align: center; }
.notif-item i.fa-exclamation-triangle { color: var(--accent-warning); }
.notif-item i.fa-map-marker-alt { color: var(--accent-danger); }

/* Rate badge */
.rate-badge { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: rgba(148,163,184,0.1); color: #64748b; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }

/* Select dropdown dark theme */
select.form-input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}
select.form-input optgroup {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
select.form-input:focus option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Notification History */
.notif-history-item { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); margin-bottom: 10px; cursor: pointer; transition: all 0.15s ease; position: relative; }
.notif-history-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.notif-history-item.unread { border-left: 3px solid var(--accent-primary); }
.notif-history-item.read { border-left: 3px solid transparent; opacity: 0.7; }
.notif-history-item.success { border-left-color: var(--accent-success); }
.notif-history-item.warning { border-left-color: var(--accent-warning); }
.notif-history-item.danger { border-left-color: var(--accent-danger); }
.notif-history-item.info { border-left-color: var(--accent-primary); }
.notif-history-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.notif-history-icon.success { background: rgba(16,185,129,0.15); color: var(--accent-success); }
.notif-history-icon.warning { background: rgba(245,158,11,0.15); color: var(--accent-warning); }
.notif-history-icon.danger { background: rgba(239,68,68,0.15); color: var(--accent-danger); }
.notif-history-icon.info { background: rgba(59,130,246,0.15); color: var(--accent-primary); }
.notif-history-title { font-weight: 600; font-size: 14px; }
.notif-history-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
.notif-history-time { font-size: 11px; color: #475569; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); flex-shrink: 0; margin-top: 4px; }

/* Compact Mode */
body.compact .stat-card { padding: 16px; }
body.compact .stat-value { font-size: 24px; }
body.compact .card-body { padding: 16px; }
body.compact .data-table th, body.compact .data-table td { padding: 10px 12px; }
body.no-animations * { animation: none !important; transition: none !important; }

/* Release button spinner */
.release-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.release-btn.btn-success { background: rgba(16,185,129,0.2) !important; color: var(--accent-success) !important; border-color: var(--accent-success) !important; }

