/* Kubera Tech - Founder Dashboard Tabbed System Styles */
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--border-subtle); margin-bottom: 2rem; flex-wrap: wrap; gap: 15px; }
.dash-user-info { display: flex; align-items: center; gap: 15px; }
.dash-avatar { width: 52px; height: 52px; border-radius: var(--radius-full); border: 2px solid var(--primary); object-fit: cover; }

/* Stats Counter Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden; }
.stat-card-title { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-card-val { font-size: 2rem; font-weight: 900; color: var(--text-main); line-height: 1.2; }

/* Tab Bar */
.tab-bar { display: flex; gap: 8px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 2rem; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
.dash-tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 10px 20px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-md) var(--radius-md) 0 0; transition: var(--transition-fast); display: flex; align-items: center; gap: 8px; }
.dash-tab-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.dash-tab-btn.active { color: var(--primary); background: rgba(56, 189, 248, 0.1); border-bottom: 2px solid var(--primary); }

/* Tab Panels */
.tab-panel { display: none; animation: fadeIn 0.25s ease-out; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Data Tables */
.table-wrap { width: 100%; overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); margin-top: 1rem; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.data-table th { padding: 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.data-table td { padding: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-main); }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Search and Filters */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.search-input { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 16px; color: white; outline: none; min-width: 260px; }
.search-input:focus { border-color: var(--primary); }
select.search-input option { background-color: #111827; color: #f8fafc; padding: 10px; }

/* Modal Overlay & Dialog */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 15, 29, 0.85); backdrop-filter: blur(12px); z-index: 2000; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.show { display: flex; }
.modal-box { background: #111827; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); position: relative; box-sizing: border-box; }
.modal-box input, .modal-box select, .modal-box button { box-sizing: border-box; max-width: 100%; }

/* Station Cards Flex Container - Desktop & Mobile Best Fit */
.stations-flex-container { display: flex; flex-direction: row; flex-wrap: wrap; gap: 20px; margin-bottom: 2rem; width: 100%; box-sizing: border-box; }
.stations-flex-container .station-card { flex: 1 1 calc(33.333% - 14px); min-width: 300px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stations-flex-container .station-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3); }

@media (max-width: 1024px) {
  .stations-flex-container .station-card { flex: 1 1 calc(50% - 10px); min-width: 270px; }
}

@media (max-width: 640px) {
  .modal-overlay { padding: 0.5rem; }
  .modal-box { padding: 1.25rem 1rem; border-radius: var(--radius-md); }
  .modal-box div[style*="grid-template-columns"] { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  .stations-flex-container { flex-direction: column; gap: 16px; }
  .stations-flex-container .station-card { flex: 1 1 100%; min-width: 100%; }
  .dash-header { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 1rem 0; }
  .dash-user-info { width: 100%; }
  .dash-header > div:last-child { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; width: 100% !important; }
  #liveDashboardClockBadge { flex: 1 1 100%; justify-content: space-between; margin-bottom: 2px; }
  .dash-header > div:last-child select#founderFilterSelect { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .dash-header > div:last-child button, .dash-header > div:last-child a.btn { flex: 1 1 auto; justify-content: center; text-align: center; font-size: 0.8rem; padding: 8px 10px; }
  .notif-bell-container { flex: 0 0 auto !important; }
  .notif-bell-container button#notifBellBtn { padding: 8px 14px !important; font-size: 1.1rem !important; }
  #founderCommissionBanner { flex-direction: column; align-items: flex-start; gap: 10px; }
  #founderCommissionBanner > div:last-child { width: 100%; justify-content: space-between; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .search-input { min-width: unset; width: 100%; }
  .notif-dropdown-panel { position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: calc(100vw - 32px) !important; max-width: 400px !important; max-height: 80vh !important; z-index: 99999 !important; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.85), 0 0 0 1px rgba(56,189,248,0.4) !important; }
}
