/* Custom CSS for Orion Dashboard
 * Professional, clean design inspired by modern fintech applications
 */

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ====================
   SIDEBAR STYLES
   ==================== */
.sidebar-gradient {
  background: linear-gradient(180deg, #0d2b2e 0%, #0a2224 100%);
}

.nav-item {
  transition: all 0.2s ease;
  border-radius: 8px;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background-color: rgba(0, 217, 126, 0.15);
  color: #00d97e;
}

/* ====================
   CARD STYLES
   ==================== */
.balance-card {
  background: linear-gradient(135deg, #0f3d3e 0%, #0d2f30 100%);
  border-radius: 16px;
}

.stat-card {
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.stat-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ====================
   BUTTON STYLES
   ==================== */
.btn-primary {
  background-color: #00d97e;
  color: white;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #00c471;
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

/* ====================
   INPUT STYLES
   ==================== */
.search-input {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #00d97e;
  box-shadow: 0 0 0 3px rgba(0, 217, 126, 0.1);
}

/* ====================
   STATUS BADGES
   ==================== */
.status-success {
  background-color: #dcfce7;
  color: #166534;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* ====================
   TREND INDICATORS
   ==================== */
.trend-up {
  color: #00d97e;
}

.trend-down {
  color: #ef4444;
}

/* ====================
   TABLE STYLES
   ==================== */
table tbody tr {
  transition: background-color 0.15s ease;
}

table tbody tr:hover {
  background-color: #f9fafb;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ====================
   CHART ANIMATIONS
   ==================== */
.chart-bar {
  transition: all 0.3s ease;
}

.chart-bar:hover {
  filter: brightness(1.1);
  transform: scaleY(1.02);
  transform-origin: bottom;
}

/* ====================
   MOBILE RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
  .mobile-menu-open aside {
    transform: translateX(0);
  }

  aside.sidebar-mobile {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
}

/* ====================
   FOCUS STYLES (Accessibility)
   ==================== */
*:focus-visible {
  outline: 2px solid #00d97e;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* ====================
   PRINT STYLES
   ==================== */
@media print {
  aside,
  nav,
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
  }
}
