@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --fire-orange: #ff6b35;
  --fire-red: #ff4500;
  --fire-yellow: #ffb347;
  --dark-bg: #0a0a0f;
  --dark-card: #111118;
  --dark-card-hover: #16161f;
  --border-subtle: rgba(255, 107, 53, 0.08);
  --border-hover: rgba(255, 107, 53, 0.25);
  --glow-orange: rgba(255, 107, 53, 0.15);
}

/* Base dark background - near black with subtle warm radials */
body {
  background: radial-gradient(ellipse at top right, rgba(255, 107, 53, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(255, 69, 0, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(20, 16, 24, 1) 0%, #0a0a0f 100%);
  background-color: #0a0a0f;
  color: #e8e8ef;
  min-height: 100vh;
}

/* Glassmorphism Panel - darker, with orange tint */
.glass-panel {
  background: rgba(14, 14, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.glass-panel-hover:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px 0 var(--glow-orange),
              0 0 20px rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards with roxs.dev style - subtle glow on hover */
.card-fire {
  background: rgba(14, 14, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-fire::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 107, 53, 0.1) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-fire:hover {
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.08),
              0 0 1px rgba(255, 107, 53, 0.3);
  transform: translateY(-3px);
}

.card-fire:hover::before {
  opacity: 1;
}

/* Tables styling */
.custom-table th {
  background: rgba(14, 14, 20, 0.9);
  color: #8b8b9e;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 107, 53, 0.08);
}

.custom-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s;
}

.custom-table tr:hover {
  background-color: rgba(255, 107, 53, 0.02);
}

/* Custom scrollbars - fire theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.25);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 53, 0.45);
}

/* Glow effects - fire palette */
.glow-primary {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.25),
              0 0 40px rgba(255, 107, 53, 0.1);
}

.glow-success {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.glow-danger {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

/* Fire gradient text */
.text-fire-gradient {
  background: linear-gradient(135deg, #ff6b35, #ffb347, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Neon text glow - orange */
.text-glow-fire {
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.4),
               0 0 20px rgba(255, 107, 53, 0.2);
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(255, 107, 53, 0.15); }
  50% { border-color: rgba(255, 107, 53, 0.4); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.animate-border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

/* Text glow - keeping green/red for financial context */
.text-glow-green {
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.text-glow-red {
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

/* Responsive sidebars and layouts */
.content-wrapper {
  max-width: 1700px;
  margin: 0 auto;
}

/* Sticky table header support */
.sticky-thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0e0e14 !important;
  box-shadow: inset 0 -1px 0 rgba(255, 107, 53, 0.08);
}

/* Hide number input up/down spin buttons */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
}

/* Button fire style */
.btn-fire {
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.btn-fire:hover {
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4),
              0 0 30px rgba(255, 107, 53, 0.15);
  transform: translateY(-1px);
}

/* Badge fire style */
.badge-fire {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.2);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Input fields - darker with orange focus */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 107, 53, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08), 0 0 15px rgba(255, 107, 53, 0.05) !important;
}

/* Navbar link hover - fire accent */
nav a:hover,
nav button:hover {
  color: #ff6b35 !important;
}

/* Override indigo accents globally for interactive states */
.focus\:ring-indigo-500:focus {
  --tw-ring-color: rgba(255, 107, 53, 0.5) !important;
}

.hover\:border-indigo-500\/30:hover {
  border-color: rgba(255, 107, 53, 0.3) !important;
}
