/* style.css - OVEP Digital Coop Core Design System */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap");

:root {
  --bg-primary: #0a0a0e;
  --bg-secondary: #13141b;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-primary: #6d28d9; /* Deep purple */
  --accent-glow: #8b5cf6;
  --accent-secondary: #10b981; /* Success Green */
  --accent-danger: #ef4444; /* Error Red */

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-glass: rgba(0, 0, 0, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(109, 40, 217, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 50%
    );
  background-size: cover;
  background-attachment: fixed;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(109, 40, 217, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 50%
    );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  transition: var(--transition);
}

[data-theme="light"] .glass-panel {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Typography Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-glow) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-glow) 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.6);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.btn-primary:active::after {
  opacity: 1;
  transform: rotate(45deg) scale(0.9);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--text-secondary);
}

.btn-success {
  background: var(--accent-secondary);
  color: var(--bg-primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  z-index: 9999;
}

.user-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 992px) {
  .navbar {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
  }
}

.navbar-menu {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 992px) {
  .navbar-menu {
    grid-column: 1 / -1;
    justify-content: center;
    order: 3;
    width: 100%;
    gap: 0.5rem;
  }
}

.navbar-menu .nav-item,
.navbar .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-menu .nav-item:hover,
.navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.navbar-menu .nav-item.active,
.navbar .nav-link.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent-glow);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.dropdown-item {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding-left: 1.2rem;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.brand {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
}

.brand_logomark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-glow) 0%, #3b82f6 100%);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-glow);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

/* Dashboard Grids */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-card h3 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-weight: 600;
}
.stat-card .value {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-secondary);
}

/* Video Player Area */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Verification Overlay */
.verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.verification-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.verification-box {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* User Profile Mini */
.user-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}
.tc-balance {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-glow);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
  
  .dashboard-grid > div {
    grid-column: 1 / -1 !important;
  }

  div[style*="grid-template-columns: 1fr 2fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  main[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Mobile Nav Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block; /* Show hamburger only on mobile */
  }

  .navbar {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1rem;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.5); /* Daha net gorunmesi icin */
    border-radius: var(--radius-md);
  }

  .brand {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Logo altı ince cizgi */
  }

  /* Select direct children of navbar that aren't the brand, and hide them by default */
  .navbar > div:not(.brand) {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding-top: 1rem;
    align-items: stretch !important;
  }

  /* When JS adds .nav-mobile-open to .navbar, show elements */
  .navbar.nav-mobile-open > div:not(.brand) {
    display: flex;
  }

  /* Rest of mobile cleanup */
  .user-widget {
    flex-direction: column;
    border: none;
    background: transparent;
    padding: 0;
    gap: 0.5rem;
    text-align: center;
  }

  .user-widget .btn {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .glass-panel {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  .btn,
  .btn-outline,
  .btn-primary {
    display: flex;
    white-space: normal;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  /* Status & Player fixes for flex items with inline styles */
  div[style*="justify-content:space-between"] {
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem;
  }

  div[style*="text-align: right; flex: 1;"] {
    text-align: center !important;
    width: 100%;
  }

  /* Admin tables mobile scroll */
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .task-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .task-item > div[style*="align-items:flex-end"] {
    align-items: center !important;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
    overflow-x: hidden;
  }
  .tc-balance {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .brand {
    justify-content: center;
  }
}

/* Notifications UI */
.notification-bell {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  margin-right: 1rem;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-danger);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
}

.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 1000;
  margin-top: 10px;
  overflow: hidden;
  animation: fade 0.2s ease-in-out;
}

@media (max-width: 768px) {
  .notifications-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    width: 90%;
    max-width: 350px;
    z-index: 10000;
    margin-top: 0;
  }
}

.notifications-dropdown.show {
  display: flex;
}

.notifications-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.notifications-body {
  max-height: 350px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition);
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
  background: rgba(139, 92, 246, 0.05);
  border-left: 3px solid var(--accent-glow);
}

.notification-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-primary);
}

.notification-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.notification-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* Settings Sidebar Components */
.settings-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tab-btn span {
  font-size: 1.2rem;
  filter: grayscale(1);
  transition: 0.3s;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateX(5px);
}
.tab-btn.active {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  border-color: var(--accent-glow);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}
.tab-btn.active span {
  filter: grayscale(0);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: slideIn 0.4s ease forwards;
}

.setting-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}
.setting-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.setting-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
  line-height: 1.4;
}

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

@media (max-width: 992px) {
  .settings-container {
    grid-template-columns: 1fr;
  }
  .settings-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  .tab-btn {
    white-space: nowrap;
    padding: 0.8rem 1.2rem;
  }
}

/* Notification Improvements */
.notification-bell.pulse {
  animation: bellPulse 2s infinite;
}
@keyframes bellPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    color: var(--accent-glow);
  }
  100% {
    transform: scale(1);
  }
}

.type-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.type-info {
  background: #3b82f6;
}
.type-success {
  background: #10b981;
}
.type-warning {
  background: #f59e0b;
}
.type-danger {
  background: #ef4444;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.toast-item {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.toast-item.out {
  animation: toastOut 0.5s ease forwards;
}

.toast-success {
  border-left: 4px solid #10b981;
}
.toast-danger {
  border-left: 4px solid #ef4444;
}
.toast-warning {
  border-left: 4px solid #f59e0b;
}
.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.toast-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .toast-container {
    width: calc(100% - 40px);
    left: 20px;
  }
}

/* Dashboard V2 Pulse & Action Hub */
.action-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.2rem;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.action-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.action-card.alert {
  border-left: 4px solid var(--accent-danger);
}
.action-card .badge-notif {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-danger);
  color: #fff;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
.action-card h4 {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.action-card .val {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

.pulse-feed {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.pulse-feed::-webkit-scrollbar {
  width: 4px;
}
.pulse-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.pulse-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.2s;
}
.pulse-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.pulse-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.pulse-content {
  flex: 1;
}
.pulse-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.pulse-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fin-health {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.fin-metric {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
}
.fin-val {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent-glow);
  margin: 0.3rem 0;
}
.fin-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   LIGHT THEME — Admin Panel & General Overrides
   Fixes hardcoded colors that don't respond to CSS variables
   ============================================================ */
[data-theme="light"] body {
  background-color: #f1f5f9;
}

/* Admin dashboard cards */
[data-theme="light"] .action-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}
[data-theme="light"] .action-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .action-card h4 {
  color: #64748b;
}
[data-theme="light"] .action-card .val {
  color: #0f172a;
}

/* Pulse feed */
[data-theme="light"] .pulse-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .pulse-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .pulse-item:hover {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .pulse-title {
  color: #1e293b;
}
[data-theme="light"] .pulse-time {
  color: #94a3b8;
}

/* Fin metrics */
[data-theme="light"] .fin-metric {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Stat cards (admin) */
[data-theme="light"] .stat-card h3 {
  color: #0f172a;
}

/* Toast */
[data-theme="light"] .toast-item {
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Form controls in light mode */
[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .form-control:focus {
  background: #fff;
  border-color: var(--accent-glow);
}

/* nav2 bars (admin_nav.php) in light mode */
[data-theme="light"] .nav2-top {
  background: rgba(240, 240, 250, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .nav2-bottom {
  background: rgba(248, 250, 252, 0.9);
}
[data-theme="light"] .nav2-brand {
  color: var(--accent-danger, #ef4444);
}
[data-theme="light"] .nav2-link {
  color: #475569;
}
[data-theme="light"] .nav2-link:hover,
[data-theme="light"] .nav2-link.active {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .nav2-link.active {
  color: var(--accent-glow, #8b5cf6);
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}
[data-theme="light"] .nav2-user-name {
  color: #1e293b;
}
[data-theme="light"] .nav2-icon-btn {
  color: #475569;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .nav2-icon-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .nav2-avatar {
  background: linear-gradient(135deg, #ef4444, #a21caf);
}
[data-theme="light"] .nav2-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .nav2-dropdown-item {
  color: #374151;
}
[data-theme="light"] .nav2-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}
[data-theme="light"] .nav2-sep {
  color: rgba(0, 0, 0, 0.15);
}

/* General hardcoded white text fixes */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 {
  color: #0f172a;
}

/* Tables in admin */
[data-theme="light"] table td,
[data-theme="light"] table th {
  color: #1e293b;
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] table th {
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
}

/* Glass panel in light mode */
[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

/* Notification dropdown */
[data-theme="light"] .notifications-dropdown,
[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .notification-item:hover {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .notifications-header {
  background: rgba(0, 0, 0, 0.03);
}
