/* ==========================================================================
   MikroTik RB750Gr3 Web Monitor - Design System & Modern CSS
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-sidebar: #0e121b;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --bg-input: rgba(14, 18, 28, 0.8);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Vibrant Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  /* Gradients */
  --grad-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-red: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --grad-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow-cyan: 0 0 15px rgba(0, 242, 254, 0.3);
  --shadow-glow-green: 0 0 15px rgba(16, 185, 129, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--grad-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #000;
  box-shadow: var(--shadow-glow-cyan);
}

.brand-icon.icon-lg {
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-text h1 span {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Status Pill */
.router-status-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.status-indicator-dot.pulse {
  animation: statusPulse 2s infinite;
}

.router-status-badge.connected .status-indicator-dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.router-status-badge.disconnected .status-indicator-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.status-ping {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes statusPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.user-avatar {
  color: var(--accent-cyan);
}

.user-name {
  font-weight: 600;
}

/* Disconnected Alert Banner */
.alert-banner-disconnected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.1) 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  animation: slideDown 0.3s ease-out;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.alert-icon {
  font-size: 1.35rem;
  color: var(--accent-red);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Main Layout & Sidebar
   ========================================================================== */
.main-layout {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 0.85rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-tab.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.nav-tab i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.tab-badge {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.nav-tab.active .tab-badge {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.system-mini-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-row strong {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Content Viewport & Panes
   ========================================================================== */
.content-viewport {
  flex: 1;
  padding: 1.75rem;
  overflow-y: auto;
  max-height: calc(100vh - 65px);
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.tab-pane.active {
  display: flex;
}

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

/* ==========================================================================
   Glass Cards & Metric Cards
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon {
  font-size: 1.25rem;
}

.icon-cyan { color: var(--accent-cyan); }
.icon-purple { color: var(--accent-purple); }
.icon-green { color: var(--accent-green); }
.icon-amber { color: var(--accent-amber); }

.metric-value-huge {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 0.4rem;
}

.metric-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* Progress Bars */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-cyan { background: var(--grad-cyan); }
.progress-purple { background: var(--grad-purple); }
.progress-green { background: var(--grad-green); }
.progress-amber { background: var(--grad-amber); }
.progress-red { background: var(--grad-red); }

/* Section Cards & Headers */
.section-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.section-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Chart Styles */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

.chart-wrapper-large {
  height: 340px;
}

.chart-legend-custom {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.legend-rx {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.legend-tx {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   Sub Navigation Tabs
   ========================================================================== */
.sub-nav-bar {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  width: fit-content;
}

.sub-nav-tab {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-nav-tab:hover {
  color: var(--text-primary);
}

.sub-nav-tab.active {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.subtab-pane {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.subtab-pane.active {
  display: flex;
}

/* ==========================================================================
   Interactive Tables & Filters
   ========================================================================== */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.table-search-bar i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.table-search-bar input {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 240px;
}

.table-search-bar input:focus {
  border-color: var(--border-focus);
}

.custom-select {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--border-focus);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.custom-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
  user-select: none;
}

.custom-table th[data-sort] {
  cursor: pointer;
}

.custom-table th[data-sort]:hover {
  color: var(--accent-cyan);
}

.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.mono-val {
  font-family: var(--font-mono);
  font-size: 0.825rem;
}

.queue-utilization-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.queue-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.queue-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ==========================================================================
   Buttons & Form Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.15rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-cyan);
  color: #000;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-icon-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  padding: 0;
}

.btn-icon-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.btn-logout:hover {
  color: var(--accent-red);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.btn-outline-danger:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Forms & Settings */
.max-w-700 {
  max-width: 700px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.custom-input {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
}

.custom-input:focus {
  border-color: var(--border-focus);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.input-with-icon .custom-input {
  width: 100%;
  padding-left: 2.75rem;
}

/* ==========================================================================
   Modal Authentication Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-card {
  transform: scale(1);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.modal-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  text-align: center;
}

.form-success-msg {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  text-align: center;
}

/* Router Switcher Top Navbar */
.router-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.router-select-container {
  position: relative;
  display: flex;
  align-items: center;
}

.router-select-container .select-icon {
  position: absolute;
  left: 10px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  pointer-events: none;
}

.custom-select.router-select {
  padding-left: 2rem;
  padding-right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  color: #fff;
  font-weight: 600;
  max-width: 260px;
}

.custom-select.router-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Modal Wide & Form Extras */
.modal-card-wide {
  max-width: 580px;
}

.modal-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.modal-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.checkbox-group-wrap {
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.875rem;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.action-right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-outline-info {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.btn-outline-info:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}

.action-buttons-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem;
  }
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .sidebar-footer {
    display: none;
  }
  .content-viewport {
    max-height: none;
    padding: 1rem;
  }
  .top-navbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .router-switcher-wrap {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}
