/* ==========================================================================
   Simhost NG CSS Design System
   Aesthetic: Premium Dark Glassmorphism, Neon Accents, Smooth Animations
   ========================================================================== */

/* Variables */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette */
  --bg-primary: #080a0f;
  --bg-secondary: #0c0f17;
  --bg-tertiary: #121622;
  
  --panel-bg: rgba(18, 22, 34, 0.7);
  --panel-border: rgba(38, 48, 72, 0.6);
  --panel-border-hover: rgba(0, 210, 255, 0.3);

  --text-main: #f1f5f9;
  --text-muted: #8892b0;
  --text-highlight: #00d2ff;

  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.2);
  --secondary: #8a2be2;
  --secondary-glow: rgba(138, 43, 226, 0.2);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Provider Colors */
  --mtn-color: #ffcc00;
  --airtel-color: #e60000;
  --glo-color: #2e8b57;
  --ninemobile-color: #005030;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00d2ff 0%, #8a2be2 100%);
  --grad-dark: linear-gradient(180deg, #080a0f 0%, #0c0f17 100%);
  --grad-card: linear-gradient(145deg, rgba(20, 26, 40, 0.6) 0%, rgba(12, 16, 24, 0.8) 100%);
  --grad-text: linear-gradient(90deg, #00d2ff, #8a2be2);

  /* Shadow & Blur */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 0 20px rgba(0, 210, 255, 0.25);
  --glass-blur: blur(12px);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-round: 50%;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Helpers */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.hidden { display: none !important; }

/* Provider Background Utilities */
.mtn-bg { background-color: var(--mtn-color) !important; color: #000 !important; }
.airtel-bg { background-color: var(--airtel-color) !important; color: #fff !important; }
.glo-bg { background-color: var(--glo-color) !important; color: #fff !important; }
.9mobile-bg { background-color: var(--ninemobile-color) !important; color: #fff !important; }
.brand-bg { background: var(--grad-primary) !important; color: #fff !important; }

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  border-color: var(--panel-border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: var(--panel-border);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-clear {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text-muted);
}
.btn-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-xs-shortcut {
  background: rgba(30, 37, 56, 0.5);
  border: 1px solid var(--panel-border);
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.btn-xs-shortcut:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 210, 255, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(12, 15, 23, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
  background-color: rgba(18, 22, 34, 0.9);
}

.form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

/* App Layout */
.auth-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.auth-card {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dashboard Main Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(38, 48, 72, 0.3);
}

.sidebar-brand .logo-icon {
  color: var(--primary);
}

.sidebar-menu {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.25s;
}

.menu-item i {
  font-size: 1.15rem;
}

.menu-item:hover {
  color: var(--text-main);
  background-color: rgba(30, 38, 56, 0.4);
}

.menu-item.active {
  color: white;
  background: var(--grad-primary);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

.simulator-item {
  margin-top: auto;
  border: 1px dashed rgba(138, 43, 226, 0.4);
}
.sidebar-menu .simulator-item:hover,
.sidebar-menu .simulator-item.active {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.6) 0%, rgba(20, 26, 40, 0.8) 100%);
  border-style: solid;
  border-color: var(--secondary);
}

.sidebar-user {
  padding: 20px;
  border-top: 1px solid rgba(38, 48, 72, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.user-info .username {
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-indicator {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}
.status-indicator.online::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: var(--radius-round);
  box-shadow: 0 0 8px var(--success);
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.logout-btn:hover {
  color: var(--danger);
  background-color: rgba(239, 68, 68, 0.1);
}

/* Main Area Layout */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-header {
  padding: 24px 40px;
  background-color: rgba(8, 10, 15, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title h1 {
  font-size: 1.6rem;
  font-weight: 700;
}
.header-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-key-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-key-badge span {
  color: var(--text-muted);
  font-weight: 600;
}

.api-key-badge code {
  font-family: var(--font-mono);
  color: var(--primary);
}

.api-key-badge button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.api-key-badge button:hover {
  color: var(--primary);
}

.refresh-indicator {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.refresh-indicator:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
}

/* Dashboard Body Containers */
.content-body {
  padding: 40px;
  flex: 1;
}

/* Tab Views toggle */
.tab-view {
  display: none;
  animation: tabFadeIn 0.35s ease-out;
}
.tab-view.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General Card Styles */
.card {
  background: var(--grad-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--panel-border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(38, 48, 72, 0.3);
  padding-bottom: 12px;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background-color: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background-color: rgba(59, 130, 246, 0.15); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.3); }

/* stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-info h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Dashboard layouts split grids */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
}

/* Simulation view slots on Overview */
.overview-sims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.sim-status-widget {
  background-color: rgba(12, 15, 23, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.sim-status-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.sim-status-widget.MTN::before { background-color: var(--mtn-color); }
.sim-status-widget.Airtel::before { background-color: var(--airtel-color); }
.sim-status-widget.Glo::before { background-color: var(--glo-color); }
.sim-status-widget.9mobile::before { background-color: var(--ninemobile-color); }

.sim-status-widget:hover {
  transform: translateY(-2px);
  border-color: var(--panel-border-hover);
}

.sim-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-widget-header .provider-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.sim-widget-details .number {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.sim-widget-details .balances {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}

.sim-widget-details .balance-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Network Signal Bar animation indicators */
.signal-indicator-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.signal-bar {
  width: 3px;
  background-color: rgba(255,255,255,0.15);
  border-radius: 1px;
}

.signal-bar:nth-child(1) { height: 20%; }
.signal-bar:nth-child(2) { height: 40%; }
.signal-bar:nth-child(3) { height: 60%; }
.signal-bar:nth-child(4) { height: 80%; }
.signal-bar:nth-child(5) { height: 100%; }

.signal-indicator-bars[data-strength="1"] .signal-bar:nth-child(1) { background-color: var(--danger); }
.signal-indicator-bars[data-strength="2"] .signal-bar:nth-child(1),
.signal-indicator-bars[data-strength="2"] .signal-bar:nth-child(2) { background-color: var(--warning); }
.signal-indicator-bars[data-strength="3"] .signal-bar:nth-child(1),
.signal-indicator-bars[data-strength="3"] .signal-bar:nth-child(2),
.signal-indicator-bars[data-strength="3"] .signal-bar:nth-child(3) { background-color: var(--info); }
.signal-indicator-bars[data-strength="4"] .signal-bar:nth-child(-n+4) { background-color: var(--success); }
.signal-indicator-bars[data-strength="5"] .signal-bar:nth-child(-n+5) { background-color: var(--success); }

/* Console Logs Stream */
.console-body {
  padding: 0 !important;
}

.terminal-logs {
  background-color: #030509;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 20px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
}

.log-line.text-muted { color: #5e6b8c; }
.log-line.text-success { color: #00ffaa; }
.log-line.text-error { color: #ff5e5e; }
.log-line.text-info { color: #00d2ff; }

/* Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th, .table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}

.table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  background-color: rgba(30, 38, 56, 0.2);
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: rgba(38, 48, 72, 0.2);
}

.table td code {
  font-family: var(--font-mono);
  background-color: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.action-row-btns {
  display: flex;
  gap: 8px;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  background-color: var(--bg-tertiary);
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-icon-sm.btn-danger-hover:hover {
  border-color: var(--danger);
  color: var(--danger);
  background-color: rgba(239, 68, 68, 0.05);
}

/* Modals Overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.15rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover {
  color: var(--danger);
}

.modal-form {
  padding: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* USSD Dial Tab Split screen layout */
.ussd-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

.ussd-shortcuts {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shortcut-badge {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--panel-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.shortcut-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(0, 210, 255, 0.05);
}

/* Smartphone simulation mockup container */
.device-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.smartphone {
  position: relative;
  width: 290px;
  height: 540px;
  background-color: #1a1e26;
  border: 12px solid #2e3547;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.smartphone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background-color: #2e3547;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: #0c0f16;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status-bar {
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: white;
  z-index: 5;
  background-color: rgba(0,0,0,0.15);
  font-weight: 500;
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-screen-content {
  flex: 1;
  position: relative;
}

.phone-idle {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 20px 20px;
  background: linear-gradient(180deg, #1e1b4b 0%, #0c0a09 100%);
  text-align: center;
}

.lockscreen-widgets .time {
  font-size: 2.8rem;
  font-weight: 300;
}
.lockscreen-widgets .date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.sim-host-brand {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.sim-host-brand i {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.animated-chip {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Real-looking USSD modal alert */
.ussd-dialog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.ussd-dialog-inner {
  width: 100%;
  background-color: #1c1f26;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  padding: 20px;
  animation: scaleUp 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#ussd-dialog-text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
  white-space: pre-line;
}

.ussd-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.ussd-dialog-actions button {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
}
.ussd-dialog-actions button:hover {
  background-color: rgba(0, 210, 255, 0.1);
}

/* SMS Inbox View Layout styles */
.sms-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.sms-list-container {
  height: 380px;
  overflow-y: auto;
  background-color: rgba(10, 12, 18, 0.4);
}

.sms-item {
  display: flex;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(38, 48, 72, 0.4);
  gap: 14px;
  transition: background-color 0.2s;
}
.sms-item:hover {
  background-color: rgba(30, 37, 56, 0.3);
}

.sms-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(30, 37, 56, 0.8);
  border: 1px solid var(--panel-border);
}

.sms-item-icon.inbound { color: var(--info); }
.sms-item-icon.outbound { color: var(--success); }

.sms-item-content {
  flex: 1;
}

.sms-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.sms-item-header .sender {
  font-weight: 600;
}

.sms-item-header .time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sms-item-body {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-main);
  word-break: break-word;
}

.sms-item-footer {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sms-item-footer span {
  font-family: var(--font-mono);
}

/* Webhooks setup views styling */
.webhook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.webhook-activity-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.description-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.active-hook-card {
  background-color: rgba(12, 15, 23, 0.6);
  border: 1px solid var(--panel-border);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.active-hook-card .hook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.active-hook-card .hook-header h3 {
  font-size: 0.95rem;
}

.active-hook-card .hook-url {
  font-size: 0.8rem;
  color: var(--primary);
  font-family: var(--font-mono);
  word-break: break-all;
  margin-bottom: 8px;
}

.active-hook-card .hook-details {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.active-hook-card .hook-details code {
  color: var(--text-main);
  background-color: rgba(0,0,0,0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* Webhook Delivery Log details */
.webhook-logs-list {
  max-height: 260px;
  overflow-y: auto;
}

.webhook-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(38,48,72,0.3);
  font-size: 0.8rem;
}

.webhook-log-item:hover {
  background-color: rgba(38,48,72,0.1);
}

.webhook-log-item .log-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.webhook-log-item .log-meta .event-type {
  font-weight: 600;
}

.webhook-log-item .log-meta .log-url {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.webhook-log-item .log-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.webhook-log-item .log-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Small Tabs inside API Integration Docs */
.tabs-nav-small {
  display: flex;
  border-bottom: 1px solid var(--panel-border);
  gap: 16px;
  margin-bottom: 20px;
}

.tab-btn-small {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn-small:hover {
  color: var(--primary);
}

.tab-btn-small.active {
  color: var(--primary);
}

.tab-btn-small.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.api-snippet-view {
  display: none;
  animation: fadeIn 0.2s ease-out;
}
.api-snippet-view.active {
  display: block;
}

.api-snippet-view h3 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 20px 0 10px 0;
}

.api-snippet-view h3:first-of-type {
  margin-top: 0;
}

pre {
  background-color: #040508;
  border: 1px solid var(--panel-border);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a5b4fc;
}

pre code {
  font-family: inherit;
}

/* Simulator elements */
.simulator-section {
  background-color: rgba(12, 15, 23, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.simulator-section h3 {
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(38,48,72,0.3);
  padding-bottom: 8px;
}

.sender-shortcuts, .msg-shortcuts {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slider-control {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  outline: none;
  border-radius: 4px;
  margin: 12px 0;
}

.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
  transition: transform 0.1s;
}
.slider-control::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.simulator-info-banner {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(138, 43, 226, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
}

.simulator-info-banner .banner-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.simulator-info-banner p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.online::before {
  animation: pulse 2s infinite;
}

/* Mobile Responsiveness Rules */
@media (max-width: 1024px) {
  .sidebar { width: 80px; }
  .sidebar-brand span, .menu-item span, .sidebar-user .user-info div { display: none; }
  .sidebar-brand { justify-content: center; padding: 20px 0; }
  .menu-item { justify-content: center; padding: 12px; }
  .sidebar-user { justify-content: center; padding: 20px 0; }
  .main-content { margin-left: 80px; }
  .content-header { padding: 20px 24px; }
  .content-body { padding: 24px; }
  .ussd-split-layout { grid-template-columns: 1fr; }
  .device-mockup-wrapper { order: -1; }
  .sms-layout-grid { grid-template-columns: 1fr; }
  .webhook-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dashboard-grid-2 { grid-template-columns: 1fr; }
}
