/**
 * Hodors Hub - Modern Theme System
 * Light & Dark Mode Support
 * Based on Design References (ChatGPT Image 19. Nov. 2025)
 */

/* ========================================
   CSS VARIABLES - LIGHT MODE (Default)
   ======================================== */

:root {
  /* Background Colors */
  --hub-bg: #FFFFFF;
  --hub-surface: #F7F9FA;
  --hub-surface-elevated: #FFFFFF;

  /* Border & Dividers */
  --hub-border: #E4E7EB;
  --hub-border-light: #F0F2F5;

  /* Text Colors */
  --hub-text: #1A1D1F;
  --hub-text-secondary: #6F767E;
  --hub-text-muted: #9FA6AD;

  /* Accent Colors (Petrol/Teal from design) */
  --hub-accent: #3AA6A4;
  --hub-accent-hover: #2E8886;
  --hub-accent-light: rgba(58, 166, 164, 0.1);

  /* Signal Colors (Modern & Muted) */
  --hub-signal-strong-buy: #3D8B40;
  --hub-signal-buy: #4C956C;
  --hub-signal-hold-light: #D4C8B8;
  --hub-signal-hold: #8B8B8B;
  --hub-signal-sell: #D65A5A;
  --hub-signal-strong-sell: #B13838;

  /* Semantic Colors */
  --hub-success: #4C956C;
  --hub-success-light: rgba(76, 149, 108, 0.1);
  --hub-danger: #D65A5A;
  --hub-danger-light: rgba(214, 90, 90, 0.1);
  --hub-warning: #F5A623;
  --hub-warning-light: rgba(245, 166, 35, 0.1);
  --hub-info: #3AA6A4;
  --hub-info-light: rgba(58, 166, 164, 0.1);

  /* Shadows */
  --hub-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --hub-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --hub-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* Typography */
  --hub-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hub-font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

  /* Spacing (aligned with Bootstrap) */
  --hub-spacing-xs: 0.25rem;
  --hub-spacing-sm: 0.5rem;
  --hub-spacing-md: 1rem;
  --hub-spacing-lg: 1.5rem;
  --hub-spacing-xl: 2rem;
  --hub-spacing-2xl: 3rem;

  /* Border Radius */
  --hub-radius-sm: 6px;
  --hub-radius-md: 8px;
  --hub-radius-lg: 12px;
  --hub-radius-xl: 16px;

  /* Transitions */
  --hub-transition: all 0.2s ease;
}

/* ========================================
   CSS VARIABLES - DARK MODE
   ======================================== */

[data-theme="dark"] {
  /* Background Colors */
  --hub-bg: #0F141A;
  --hub-surface: #161D24;
  --hub-surface-elevated: #1C2530;

  /* Border & Dividers */
  --hub-border: #2A3441;
  --hub-border-light: #1F2937;

  /* Text Colors */
  --hub-text: #E6EAF0;
  --hub-text-secondary: #9CA3AF;
  --hub-text-muted: #6B7280;

  /* Accent Colors (same Petrol/Teal, works in dark) */
  --hub-accent: #3AA6A4;
  --hub-accent-hover: #4CBCBA;
  --hub-accent-light: rgba(58, 166, 164, 0.15);

  /* Signal Colors (adjusted for dark background) */
  --hub-signal-strong-buy: #4C956C;
  --hub-signal-buy: #5DAF7F;
  --hub-signal-hold: #3E3E3E;
  --hub-signal-sell: #E67373;
  --hub-signal-strong-sell: #C94A4A;

  /* Semantic Colors */
  --hub-success: #4C956C;
  --hub-success-light: rgba(76, 149, 108, 0.15);
  --hub-danger: #E67373;
  --hub-danger-light: rgba(230, 115, 115, 0.15);
  --hub-warning: #F5A623;
  --hub-warning-light: rgba(245, 166, 35, 0.15);
  --hub-info: #3AA6A4;
  --hub-info-light: rgba(58, 166, 164, 0.15);

  /* Shadows (more subtle in dark mode) */
  --hub-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --hub-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
  --hub-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ========================================
   GLOBAL BASE STYLES
   ======================================== */

body {
  background-color: var(--hub-bg);
  color: var(--hub-text);
  font-family: var(--hub-font-family);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hub-surface {
  background-color: var(--hub-surface);
  border-radius: var(--hub-radius-md);
  transition: var(--hub-transition);
}

.hub-surface-elevated {
  background-color: var(--hub-surface-elevated);
  box-shadow: var(--hub-shadow-sm);
}

.hub-border {
  border: 1px solid var(--hub-border);
}

.hub-border-light {
  border: 1px solid var(--hub-border-light);
}

.hub-text-secondary {
  color: var(--hub-text-secondary);
}

.hub-text-muted {
  color: var(--hub-text-muted);
}

/* ========================================
   CARD STYLES (from design reference)
   ======================================== */

.hub-card {
  background-color: var(--hub-surface);
  border-radius: var(--hub-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--hub-border);
  transition: var(--hub-transition);
}

.hub-card:hover {
  box-shadow: var(--hub-shadow-md);
}

.hub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hub-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hub-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.hub-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hub-text);
  margin: 0;
  line-height: 1.2;
}

.hub-card-subtitle {
  font-size: 0.875rem;
  color: var(--hub-text-muted);
  margin-top: 0.25rem;
}

/* ========================================
   METRIC CARDS (like in BYD detail view)
   ======================================== */

.hub-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.hub-metric-card {
  background-color: var(--hub-surface);
  border-radius: var(--hub-radius-md);
  padding: 1.25rem;
  border: 1px solid var(--hub-border);
  text-align: center;
}

.hub-metric-label {
  font-size: 0.8125rem;
  color: var(--hub-text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hub-metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--hub-text);
  margin: 0;
}

.hub-metric-change {
  font-size: 0.8125rem;
  color: var(--hub-text-muted);
  margin-top: 0.25rem;
}

/* ========================================
   BUTTONS (from design reference)
   ======================================== */

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--hub-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--hub-transition);
  text-decoration: none;
  gap: 0.5rem;
}

.hub-btn-primary {
  background-color: var(--hub-accent);
  color: #FFFFFF;
}

.hub-btn-primary:hover {
  background-color: var(--hub-accent-hover);
  color: #FFFFFF;
}

.hub-btn-secondary {
  background-color: transparent;
  color: var(--hub-text-secondary);
  border: 1px solid var(--hub-border);
}

.hub-btn-secondary:hover {
  background-color: var(--hub-surface);
  color: var(--hub-text);
}

.hub-btn-ghost {
  background-color: transparent;
  color: var(--hub-text-secondary);
  border: none;
}

.hub-btn-ghost:hover {
  background-color: var(--hub-surface);
  color: var(--hub-text);
}

/* ========================================
   BADGES (Signal & Status)
   ======================================== */

.hub-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--hub-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Signal Badges */
.hub-badge-strong-buy {
  background-color: var(--hub-success-light);
  color: var(--hub-signal-strong-buy);
}

.hub-badge-buy {
  background-color: var(--hub-success-light);
  color: var(--hub-signal-buy);
}

.hub-badge-hold {
  background-color: var(--hub-surface);
  color: var(--hub-text-secondary);
  border: 1px solid var(--hub-border);
}

.hub-badge-sell {
  background-color: var(--hub-danger-light);
  color: var(--hub-signal-sell);
}

.hub-badge-strong-sell {
  background-color: var(--hub-danger-light);
  color: var(--hub-signal-strong-sell);
}

/* Semantic Badges */
.hub-badge-success {
  background-color: var(--hub-success-light);
  color: var(--hub-success);
}

.hub-badge-danger {
  background-color: var(--hub-danger-light);
  color: var(--hub-danger);
}

.hub-badge-warning {
  background-color: var(--hub-warning-light);
  color: var(--hub-warning);
}

.hub-badge-info {
  background-color: var(--hub-info-light);
  color: var(--hub-info);
}

/* ========================================
   TABLES (clean, modern style)
   ======================================== */

.hub-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.hub-table thead th {
  background-color: var(--hub-surface);
  color: var(--hub-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hub-border);
}

.hub-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--hub-border-light);
  color: var(--hub-text);
  font-size: 0.9375rem;
}

.hub-table tbody tr {
  transition: var(--hub-transition);
}

.hub-table tbody tr:hover {
  background-color: var(--hub-surface);
}

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

/* Compact Table Variant */
.hub-table.hub-table-compact thead th {
  padding: 0.5rem 0.75rem;
}

.hub-table.hub-table-compact tbody td {
  padding: 0.4rem 0.75rem;
}

.hub-table.hub-table-compact tfoot th,
.hub-table.hub-table-compact tfoot td {
  padding: 0.5rem 0.75rem;
}

/* Bootstrap Table Override for Dark Mode */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--hub-text);
  --bs-table-border-color: var(--hub-border);
  --bs-table-striped-bg: var(--hub-surface);
  --bs-table-hover-bg: var(--hub-surface);
  color: var(--hub-text);
}

.table thead th {
  background-color: var(--hub-surface);
  color: var(--hub-text-secondary);
  border-bottom-color: var(--hub-border);
}

.table tbody td {
  border-bottom-color: var(--hub-border-light);
}

.table-hover tbody tr:hover {
  --bs-table-hover-bg: var(--hub-surface);
  background-color: var(--hub-surface);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

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

.hub-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hub-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hub-section-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ========================================
   PAGE HEADER (like BYD COMPANY header)
   ======================================== */

.hub-page-header {
  margin-bottom: 2rem;
}

.hub-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hub-text);
  margin: 0 0 0.5rem 0;
}

.hub-page-subtitle {
  font-size: 0.9375rem;
  color: var(--hub-text-muted);
  margin: 0;
}

.hub-page-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ========================================
   NAVBAR (from design reference)
   ======================================== */

.hub-navbar {
  background-color: var(--hub-surface);
  border-bottom: 1px solid var(--hub-border);
  padding: 1rem 0;
}

.hub-navbar-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hub-text);
  text-decoration: none;
  transition: var(--hub-transition);
}

.hub-navbar-brand:hover {
  color: var(--hub-accent);
}

.hub-navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.hub-navbar-link {
  color: var(--hub-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--hub-transition);
}

.hub-navbar-link:hover {
  color: var(--hub-text);
}

.hub-navbar-link.active {
  color: var(--hub-accent);
  font-weight: 600;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */

.hub-theme-toggle {
  background-color: transparent;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--hub-text-secondary);
  transition: var(--hub-transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hub-theme-toggle:hover {
  background-color: var(--hub-surface);
  color: var(--hub-text);
  border-color: var(--hub-accent);
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.hub-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--hub-text);
  background-color: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  transition: var(--hub-transition);
}

.hub-input:focus {
  outline: none;
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 3px var(--hub-accent-light);
}

.hub-input::placeholder {
  color: var(--hub-text-muted);
}

.hub-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hub-text-secondary);
  margin-bottom: 0.5rem;
}

/* ========================================
   SEARCH BAR
   ======================================== */

.hub-search-bar {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.hub-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hub-text-muted);
}

.hub-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9375rem;
  color: var(--hub-text);
  background-color: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  transition: var(--hub-transition);
}

.hub-search-input:focus {
  outline: none;
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 3px var(--hub-accent-light);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

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

  .hub-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hub-navbar-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.hub-fade-in {
  animation: fadeIn 0.3s ease;
}

/* ========================================
   ALERTS
   ======================================== */

.hub-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--hub-radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hub-alert-success {
  background-color: var(--hub-success-light);
  color: var(--hub-success);
  border: 1px solid var(--hub-success);
  border-opacity: 0.3;
}

.hub-alert-info {
  background-color: var(--hub-info-light);
  color: var(--hub-info);
  border: 1px solid var(--hub-info);
  border-opacity: 0.3;
}

.hub-alert-warning {
  background-color: var(--hub-warning-light);
  color: var(--hub-warning);
  border: 1px solid var(--hub-warning);
  border-opacity: 0.3;
}

.hub-alert-danger {
  background-color: var(--hub-danger-light);
  color: var(--hub-danger);
  border: 1px solid var(--hub-danger);
  border-opacity: 0.3;
}

.hub-alert-secondary {
  background-color: var(--hub-surface);
  color: var(--hub-text-secondary);
  border: 1px solid var(--hub-border);
}

/* ========================================
   NAVIGATION CARDS
   ======================================== */

.hub-nav-card {
  height: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hub-shadow-md);
}

.hub-nav-card-crypto {
  border-left: 4px solid #F59E0B;
}

.hub-nav-card-stock {
  border-left: 4px solid var(--hub-accent);
}

.hub-nav-card-etf {
  border-left: 4px solid #8B5CF6;
}

.hub-nav-card-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.hub-nav-card-badge-crypto {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.hub-nav-card-badge-stock {
  background: linear-gradient(135deg, var(--hub-accent) 0%, #2D8582 100%);
}

.hub-nav-card-badge-etf {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.hub-nav-card-arrow {
  font-weight: 600;
  font-size: 1.25rem;
}

.hub-nav-card-arrow-crypto {
  color: #F59E0B;
}

.hub-nav-card-arrow-stock {
  color: var(--hub-accent);
}

.hub-nav-card-arrow-etf {
  color: #8B5CF6;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hub-metric-large {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.hub-full-height {
  height: 100%;
}

/* ========================================
   MOBILE MENU (Hamburger)
   ======================================== */

/* Hamburger Button */
.hub-mobile-menu-toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hub-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
}

.hub-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--hub-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hub-mobile-menu-toggle:hover .hub-hamburger span {
  background: var(--hub-accent);
}

.hub-mobile-menu-toggle.active .hub-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hub-mobile-menu-toggle.active .hub-hamburger span:nth-child(2) {
  opacity: 0;
}

.hub-mobile-menu-toggle.active .hub-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.hub-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--hub-bg);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}

.hub-mobile-menu.active {
  right: 0;
}

/* Mobile Menu Backdrop */
.hub-mobile-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hub-mobile-menu.active::before {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Menu Content */
.hub-mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--hub-bg);
}

/* Mobile Menu Header */
.hub-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hub-border);
  margin-bottom: 1.5rem;
}

.hub-mobile-menu-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hub-text);
}

.hub-mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--hub-text-secondary);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.hub-mobile-menu-close:hover {
  background: var(--hub-surface);
  color: var(--hub-accent);
}

/* Mobile Menu Navigation */
.hub-mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.hub-mobile-menu-nav li {
  margin-bottom: 0.5rem;
}

.hub-mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--hub-text);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.hub-mobile-menu-link:hover {
  background: var(--hub-surface);
  color: var(--hub-accent);
  border-color: var(--hub-border);
  transform: translateX(4px);
}

.hub-mobile-menu-link.active {
  background: var(--hub-accent-light);
  color: var(--hub-accent);
  border-color: var(--hub-accent);
  font-weight: 600;
}

.hub-menu-icon {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hub-surface);
  border-radius: 8px;
  flex-shrink: 0;
}

.hub-mobile-menu-link.active .hub-menu-icon {
  background: var(--hub-accent);
  filter: brightness(1.2);
}

/* Mobile Menu Footer */
.hub-mobile-menu-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hub-border);
  margin-top: auto;
}

.hub-mobile-menu-footer .hub-mobile-menu-link.logout {
  color: var(--hub-danger);
}

.hub-mobile-menu-footer .hub-mobile-menu-link.logout:hover {
  background: var(--hub-danger-light);
  border-color: var(--hub-danger);
}

/* Prevent body scroll when menu is open */
body.hub-menu-open {
  overflow: hidden;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .hub-mobile-menu {
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hub-mobile-menu::before {
  background: rgba(0, 0, 0, 0.7);
}

/* Responsive: Hide hamburger on desktop */
@media (min-width: 992px) {
  .hub-mobile-menu-toggle {
    display: none;
  }
}

/* ========================================
   COMPACT FORMS - Global Form Styling
   ======================================== */

/* Kompaktere Form Controls */
.hub-card .form-control,
.hub-card .form-select,
.hub-card textarea.form-control {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: var(--hub-radius-sm);
  border: 1px solid var(--hub-border);
  background-color: var(--hub-bg);
  color: var(--hub-text);
  transition: var(--hub-transition);
}

.hub-card .form-control:focus,
.hub-card .form-select:focus {
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 0.2rem var(--hub-accent-light);
}

/* Kompaktere Form Groups */
.hub-card .mb-3 {
  margin-bottom: 0.75rem !important;
}

.hub-card .mb-4 {
  margin-bottom: 1rem !important;
}

/* Kompaktere Labels */
.hub-card .form-label {
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hub-text-secondary);
}

/* Kompaktere Checkboxen */
.hub-card .form-check {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.hub-card .form-check-input {
  margin-top: 0.125rem;
}

.hub-card .form-check-label {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Kompaktere Small Text */
.hub-card small,
.hub-card .small,
.hub-card .text-muted {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Kompaktere Rows */
.hub-card .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.hub-card .row > * {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Kompaktere Card Body Paddings */
.hub-card-body {
  padding: 1.25rem;
}

/* Kompaktere HR */
.hub-card hr {
  margin: 1rem 0;
}

/* Buttons in Forms kompakter */
.hub-card .btn-sm,
.hub-card .hub-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Input Groups kompakter */
.hub-card .input-group {
  gap: 0.5rem;
}

/* Kompaktere Select2 (falls verwendet) */
.hub-card .select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
}

/* Collapsible Sections kompakter */
.hub-card .collapse .border {
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
}

/* ========================================
   PAGINATION (Hub Style)
   ======================================== */

.pagination {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hub-text-secondary);
  background-color: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  text-decoration: none;
  transition: var(--hub-transition);
}

.pagination .page-item .page-link:hover {
  color: var(--hub-text);
  background-color: var(--hub-bg);
  border-color: var(--hub-accent);
}

.pagination .page-item.active .page-link {
  color: #FFFFFF;
  background-color: var(--hub-accent);
  border-color: var(--hub-accent);
}

.pagination .page-item.disabled .page-link {
  color: var(--hub-text-muted);
  background-color: var(--hub-surface);
  border-color: var(--hub-border);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Previous/Next buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  padding: 0 0.75rem;
}

/* Ellipsis */
.pagination .page-item.disabled .page-link[aria-disabled="true"] {
  background: transparent;
  border-color: transparent;
}
