@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-app: #f1f5f9;
  --card-bg: #ffffff;
  --border-card: #cbd5e1;
  --border-strong: #94a3b8;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  
  --brand-primary: #0f766e;
  --brand-hover: #115e59;
  --brand-dark: #0f172a;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-app);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir="rtl"], [dir="rtl"] body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6, [dir="rtl"] .font-heading {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  letter-spacing: normal;
}

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

/* Framed Box Standard */
.box-frame {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.box-frame-highlight {
  background-color: #f0fdfa;
  border: 2px solid #0d9488;
  border-radius: 1rem;
}

.box-frame-dark {
  background-color: #0f172a;
  color: #ffffff;
  border: 2px solid #1e293b;
  border-radius: 1rem;
}

/* Table Framing */
.table-frame {
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #ffffff;
}

.table-frame th {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.table-frame td {
  border-bottom: 1px solid #e2e8f0;
}

.table-frame tr:last-child td {
  border-bottom: none;
}

/* Interactive Sliders */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 9999px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #115e59;
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
  cursor: pointer;
  border: 3px solid #ffffff;
}

/* Card Hover Elevation */
.hover-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hover-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Accordion Smooth Transition */
details > summary {
  list-style: none;
  user-select: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] summary .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

/* Print Stylesheet */
@media print {
  header, footer, .no-print, button, .currency-btn {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .box-frame, .box-frame-highlight, .box-frame-dark {
    border: 1px solid #999999 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
}
