/* ===================================
   STARLINK THEME - Dark Cyan & Electric Blue
   Primary: #00d4ff | Secondary: #0084d4
   Futuristic UI with neon effects
   =================================== */

:root {
  --starlink-primary: #00d4ff;
  --starlink-secondary: #0084d4;
  --starlink-accent: #00e5ff;
  --starlink-dark: #0a0e27;
  --starlink-darker: #050812;
  --starlink-card: #141a38;
  --gradient-main: linear-gradient(135deg, #00d4ff 0%, #0084d4 100%);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5);
  --glow-cyan-strong: 0 0 30px rgba(0, 212, 255, 0.8);
}

/* ===== GLOBAL STYLES ===== */
body {
  background: linear-gradient(135deg, #050812 0%, #0a0e27 50%, #0d1838 100%);
  color: #e0e0ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.1); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 30px rgba(0, 212, 255, 0.2); }
}

@keyframes neon-border {
  0%, 100% { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
  50% { border-color: rgba(0, 212, 255, 0.8); box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hover-lift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@keyframes ripple-effect {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
  background: var(--gradient-main) !important;
  border: 2px solid var(--starlink-primary) !important;
  color: white !important;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 10px rgba(0, 212, 255, 0.2);
  background: var(--gradient-main) !important;
  animation: glow-pulse 1.5s ease-in-out;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background-color: rgba(0, 212, 255, 0.1) !important;
  border: 2px solid var(--starlink-primary) !important;
  color: var(--starlink-accent) !important;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.2) !important;
  color: white !important;
  border-color: var(--starlink-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* ===== CARD STYLES ===== */
.stat-card {
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.8) 0%, rgba(10, 14, 39, 0.6) 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition-smooth);
  animation: fade-in-up 0.5s ease-out;
}

.stat-card:hover {
  border-color: var(--starlink-primary);
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(20, 26, 56, 1) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.stat-card .stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  color: var(--starlink-primary);
  font-weight: 700;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-card .stat-label {
  color: var(--starlink-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CHART CARDS ===== */
.chart-card {
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.8) 0%, rgba(10, 14, 39, 0.6) 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition-smooth);
  animation: fade-in-up 0.6s ease-out;
}

.chart-card:hover {
  border-color: var(--starlink-primary);
  box-shadow: var(--glow-cyan);
}

.chart-card h3 {
  color: var(--starlink-accent);
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ===== TABLE STYLES ===== */
.table {
  border-collapse: collapse;
  animation: fade-in-up 0.7s ease-out;
}

.table thead {
  background: var(--gradient-main);
  color: white;
}

.table thead th {
  border: none;
  font-weight: 700;
  padding: 15px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.table tbody tr {
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  transition: var(--transition-smooth);
  background: rgba(20, 26, 56, 0.4);
}

.table tbody tr:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
}

.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
  color: var(--starlink-accent);
}

/* ===== NAV LINKS ===== */
.nav-link {
  color: rgba(0, 212, 255, 0.6) !important;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding-bottom: 5px;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--starlink-accent) !important;
  border-bottom-color: var(--starlink-primary);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== INPUT STYLES ===== */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
select,
textarea {
  background: rgba(20, 26, 56, 0.6) !important;
  border: 2px solid rgba(0, 212, 255, 0.3) !important;
  border-radius: 8px !important;
  transition: var(--transition-smooth);
  padding: 10px 15px !important;
  color: var(--starlink-accent) !important;
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: rgba(0, 212, 255, 0.4) !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--starlink-primary) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5), inset 0 0 10px rgba(0, 212, 255, 0.1) !important;
  outline: none !important;
  background: rgba(20, 26, 56, 0.8) !important;
}

/* ===== BADGES ===== */
.badge {
  background: var(--gradient-main);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SIDEBAR ENHANCEMENT ===== */
.sidebar {
  background: linear-gradient(180deg, #0a0e27 0%, #050812 100%);
  border-right: 2px solid rgba(0, 212, 255, 0.3);
}

.sidebar-header {
  background: var(--gradient-main);
  color: white;
  padding: 20px;
  border-radius: 0;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.sidebar-logo {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 32px;
  box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.3);
}

.sidebar-header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.sidebar-header p {
  margin: 5px 0 0 0;
  opacity: 0.9;
  font-size: 12px;
}

/* ===== STATUS INDICATOR ===== */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--starlink-primary);
  animation: glow-pulse 2s infinite;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--starlink-primary);
}

/* ===== HEADER STYLES ===== */
.dashboard-header {
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.8) 0%, rgba(10, 14, 39, 0.6) 100%);
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.dashboard-header h2 {
  color: var(--starlink-accent);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.search-box input {
  width: 250px;
  background: rgba(20, 26, 56, 0.6) !important;
  border: 2px solid rgba(0, 212, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px 15px !important;
  transition: var(--transition-smooth);
  color: var(--starlink-accent) !important;
}

.search-box input:focus {
  border-color: var(--starlink-primary) !important;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5) !important;
}

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== LOAD ANIMATION ===== */
.tab-section {
  animation: fade-in-up 0.4s ease-out;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ===== FOCUS STATES ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--starlink-primary);
  outline-offset: 2px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
  border: 2px solid var(--starlink-primary);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--starlink-accent);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  animation: fade-in-up 0.3s ease-out;
  z-index: 9999;
}

/* ===== MODAL STYLES ===== */
.modal-content {
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}

.modal-header {
  background: var(--gradient-main);
  border: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 15px;
  }

  .search-box input {
    width: 100%;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .chart-card {
    margin-bottom: 20px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background: white;
    color: black;
  }

  .sidebar,
  .dashboard-header,
  button {
    display: none;
  }
}
