/* Futuristic UI Variables */
:root {
  --neon-cyan: #00f3ff;
  --neon-purple: #bc13fe;
  --bg-color: #050b14;
  --surface-color: rgba(10, 20, 35, 0.75);
  --border-color: rgba(0, 243, 255, 0.2);
  --glow-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(188, 19, 254, 0.05), transparent 25%);
  background-attachment: fixed;
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* Glassmorphism Cards */
.card {
  background-color: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--glow-shadow);
  border-color: rgba(0, 243, 255, 0.4);
}

.card-header {
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0 !important;
}

/* Navbar */
.navbar {
  background-color: rgba(5, 11, 20, 0.85) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-weight: 800;
  color: #fff !important;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 45px;
  margin-right: 12px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1));
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: inset 0 0 10px rgba(0,243,255,0.2), 0 0 10px rgba(0,243,255,0.2);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.btn-outline-primary {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline-primary:hover {
  background-color: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan);
}

/* Forms */
.form-control, .form-select, .form-control:focus, .form-select:focus {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 243, 255, 0.25);
}

/* Text Colors */
.text-success { color: #00ff88 !important; text-shadow: 0 0 5px rgba(0,255,136,0.3); }
.text-danger { color: #ff3366 !important; text-shadow: 0 0 5px rgba(255,51,102,0.3); }
.text-primary { color: var(--neon-cyan) !important; text-shadow: 0 0 5px rgba(0,243,255,0.3); }
.text-muted { color: #8b9bb4 !important; }

/* Tables */
.table {
  color: #e2e8f0;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.table thead th {
  border-bottom: none;
  background-color: transparent !important;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.table tbody tr {
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.table tbody tr:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05);
}
.table td, .table th {
  border: none;
  padding: 1rem;
  background: transparent !important;
}

/* Custom stats cards */
.stat-card {
  border-top: 2px solid var(--neon-cyan);
}
.stat-card.revenue { border-top-color: #00ff88; }
.stat-card.expense { border-top-color: #ff3366; }
.stat-card.profit { border-top-color: var(--neon-cyan); }

/* Mobile Optimizations */
@media (max-width: 767px) {
  .navbar-brand img {
    height: 35px;
  }
  .display-5 {
    font-size: 2rem;
  }
  .card-body {
    padding: 1.25rem;
  }
  
  /* Make tables responsive by stacking */
  .table-responsive-stack tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
  }
  .table-responsive-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .table-responsive-stack td:last-child {
    border-bottom: none;
  }
  .table-responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
  }
  .table-responsive-stack thead {
    display: none;
  }
}
