/* FaraidCalc - Simplified Islamic Inheritance Calculator
   Prestigious, mathematical and educational layout
   Color palette: Islamic Emerald, Obsidian Slate, Cream Ivory, Amber Gold
*/

:root {
  --color-primary: #064e3b;
  --color-primary-light: #047857;
  --color-primary-dark: #022c22;
  --color-emerald-accent: #10b981;
  
  --color-gold: #d97706;
  --color-gold-light: #f59e0b;
  --color-gold-dark: #b45309;
  
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #0b1320;
  color: #f1f5f9;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 78, 59, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(217, 119, 6, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.7) 0%, transparent 100%);
  background-attachment: fixed;
}

/* Islamic Geometric Pattern Subtle Overlay */
.islamic-pattern {
  background-image: radial-gradient(#10b981 0.75px, transparent 0.75px), radial-gradient(#d97706 0.75px, #0b1320 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  background-opacity: 0.05;
}

.font-cinzel {
  font-family: var(--font-serif);
}

.font-amiri {
  font-family: var(--font-arabic);
}

.font-mono-calc {
  font-family: var(--font-mono);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.glass-panel-elevated {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.1);
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Emerald Gradient Text */
.emerald-gradient-text {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Card Borders */
.border-gold-glow {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.border-emerald-glow {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Stepper Input Buttons */
.stepper-btn {
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.stepper-btn:active {
  transform: scale(0.92);
}

/* Toggle Switches */
.toggle-checkbox:checked {
  right: 0;
  border-color: #10b981;
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #047857;
}

/* Accordion Animation */
.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
}

/* Print Certificate Specifics */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  #certificate-view {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .cert-border {
    border: 3px double #064e3b !important;
    padding: 24px !important;
    background: #ffffff !important;
  }

  table {
    page-break-inside: avoid;
  }
}

@media screen {
  .print-only {
    display: none !important;
  }
}

/* Tab active state */
.tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.8) 0%, rgba(4, 120, 87, 0.9) 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

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

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

/* Shimmer effect for badges */
.shimmer-badge {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
}
