/* ==========================================================================
   EXPONENT CALCULATOR STYLESHEET - CALCULATOR ARCHIVE
   Pixel-perfect match to clone reference images + interactive SVG graphs,
   fraction arithmetic suite, print modal & 8-language translations
   ========================================================================== */

:root {
  --exp-primary-blue: #0844a4;
  --exp-header-blue: #2c5f88;
  --exp-header-dark: #1f4366;
  --exp-green: #3d7a22;
  --exp-green-hover: #32661c;
  --exp-gray-btn: #888888;
  --exp-gray-btn-hover: #737373;
  --exp-card-bg: #f8f8f8;
  --exp-card-border: #cccccc;
  --exp-input-border: #7f9db9;
  --exp-res-bg: #eef8ea;
  --exp-res-border: #c3e6cb;
  --exp-res-dark: #134e15;
  --exp-text: #333333;
  --exp-font: Arial, Helvetica, sans-serif;
}

/* Page Container */
.exp-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 16px 50px;
  font-family: var(--exp-font);
  color: var(--exp-text);
  box-sizing: border-box;
}

/* Top Utility Bar (Breadcrumbs & Actions) */
.exp-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.exp-breadcrumbs {
  font-size: 11.5px;
  color: var(--exp-primary-blue);
}

.exp-breadcrumbs a {
  color: var(--exp-primary-blue);
  text-decoration: underline;
}

.exp-breadcrumbs a:hover {
  color: #002277;
}

.exp-breadcrumbs .sep {
  color: #555555;
  margin: 0 4px;
}

.exp-breadcrumbs .current {
  color: #333333;
}

.exp-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-action-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.exp-action-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.exp-print-link {
  color: var(--exp-primary-blue);
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.exp-print-link:hover {
  color: #002277;
}

/* Page Title & Instruction matching Image 2 */
.exp-page-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--exp-primary-blue);
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.exp-instruction {
  font-size: 13px;
  color: #333333;
  margin: 0 0 16px 0;
  line-height: 1.45;
}

/* Main 2-Column Layout */
.exp-main-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.exp-content-col {
  flex: 1;
  min-width: 0;
}

.exp-sidebar-col {
  width: 260px;
  flex-shrink: 0;
}

/* Main Calculator Card (Exact Clone of Image 2) */
.exp-calc-card {
  border: 1px solid var(--exp-card-border);
  background-color: var(--exp-card-bg);
  border-radius: 2px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Header Banner with Down Arrow Circle */
.exp-card-header {
  background-color: var(--exp-header-blue);
  color: #ffffff;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: normal;
}

.exp-header-icon-circle {
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--exp-header-blue);
  flex-shrink: 0;
}

.exp-header-icon-circle svg {
  fill: var(--exp-header-blue);
}

.exp-header-text {
  color: #ffffff;
  letter-spacing: 0.1px;
}

/* Card Body with Horizontal Equation */
.exp-card-body {
  padding: 22px 20px 20px;
}

.exp-equation-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.exp-field-group {
  display: flex;
  flex-direction: column;
}

.exp-field-group label.exp-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.exp-input {
  width: 80px;
  height: 32px;
  border: 1px solid var(--exp-input-border);
  border-radius: 1px;
  background-color: #ffffff;
  padding: 4px 8px;
  font-size: 16px;
  font-family: inherit;
  color: #000000;
  text-align: right;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exp-input:focus {
  border-color: var(--exp-primary-blue);
  box-shadow: 0 0 0 2px rgba(8, 68, 164, 0.15);
}

.exp-input.exp-result-input {
  width: 95px;
  background-color: #ffffff;
  font-weight: bold;
  color: #0b3c75;
}

.exp-operator-sym {
  font-size: 20px;
  font-weight: bold;
  line-height: 32px;
  color: #000000;
  user-select: none;
}

.exp-e-link {
  font-size: 12px;
  color: var(--exp-primary-blue);
  text-decoration: underline;
  margin-top: 4px;
  cursor: pointer;
  display: inline-block;
}

.exp-e-link:hover {
  color: #002277;
}

/* Action Buttons (Calculate ▶ & Clear) */
.exp-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-btn-green {
  background-color: var(--exp-green);
  color: #ffffff;
  border: 1px solid #2f6319;
  border-radius: 2px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.15s ease;
}

.exp-btn-green:hover {
  background-color: var(--exp-green-hover);
}

.exp-play-icon {
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ffffff;
}

.exp-btn-gray {
  background-color: var(--exp-gray-btn);
  color: #ffffff;
  border: 1px solid #737373;
  border-radius: 2px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.exp-btn-gray:hover {
  background-color: var(--exp-gray-btn-hover);
}

.exp-btn-quick-modal {
  margin-left: auto;
  background: transparent;
  border: 1px solid #94a3b8;
  color: #475569;
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.exp-btn-quick-modal:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Primary Result Box (Exact Clone of Image 1 Callout) */
.exp-result-banner {
  background-color: var(--exp-res-bg);
  border: 1px solid var(--exp-res-border);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 22px;
  text-align: center;
  font-size: 20px;
  color: #1e3a1f;
  font-family: inherit;
  animation: fadeIn 0.2s ease-in-out;
}

.exp-result-banner strong {
  font-size: 22px;
  color: var(--exp-res-dark);
  font-weight: 700;
}

/* Results Breakdown Cards & Key Metrics */
.exp-breakdown-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.exp-breakdown-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--exp-primary-blue);
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.exp-metric-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 12px;
}

.exp-metric-label {
  font-size: 11.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.exp-metric-val {
  font-size: 15px;
  font-weight: bold;
  color: #1e293b;
  word-break: break-all;
}

.exp-steps-box {
  background: #fdfdfd;
  border-left: 3px solid var(--exp-header-blue);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin-top: 10px;
}

.exp-steps-box ol {
  margin: 6px 0 0 18px;
  padding: 0;
}

.exp-steps-box li {
  margin-bottom: 4px;
}

/* SECTION 2: FRACTION EXPONENTS & FRACTION ARITHMETIC (Core Requirement 1) */
.exp-sec-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--exp-primary-blue);
  margin: 28px 0 8px;
}

.exp-sec-desc {
  font-size: 13px;
  color: #555555;
  margin-bottom: 12px;
  line-height: 1.45;
}

.exp-fraction-card {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 26px;
}

.exp-frac-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.exp-frac-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
}

.exp-frac-input {
  width: 48px;
  height: 26px;
  text-align: center;
  font-size: 14px;
  border: 1px solid var(--exp-input-border);
  border-radius: 2px;
  padding: 2px 4px;
}

.exp-frac-bar {
  width: 100%;
  height: 1px;
  background-color: #000000;
  margin: 3px 0;
}

.exp-op-select {
  height: 28px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--exp-input-border);
  border-radius: 2px;
  background-color: #ffffff;
  cursor: pointer;
}

.exp-frac-result-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 14px;
  color: #1e293b;
}

.exp-frac-result-val {
  font-size: 18px;
  font-weight: bold;
  color: var(--exp-green);
  margin-top: 4px;
}

/* SECTION 3: INTERACTIVE CHARTS & GRAPHS (Core Requirement 5) */
.exp-chart-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 26px;
}

.exp-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-chart-title {
  font-size: 14.5px;
  font-weight: bold;
  color: #1e293b;
}

.exp-chart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.exp-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
}

.exp-tab-btn.active {
  background: var(--exp-header-blue);
  color: #ffffff;
  border-color: var(--exp-header-blue);
}

.exp-svg-canvas {
  width: 100%;
  height: 280px;
  border: 1px solid #f1f5f9;
  background-color: #fafbfc;
  border-radius: 3px;
  display: block;
}

.exp-chart-tooltip {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
}

/* Growth Comparison Bar Table */
.exp-growth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}

.exp-growth-table th,
.exp-growth-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: right;
}

.exp-growth-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}

.exp-growth-table th:first-child,
.exp-growth-table td:first-child {
  text-align: center;
  font-weight: bold;
  background: #f8fafc;
}

/* SECTION 4: TABLE OF POWERS & RULES */
.exp-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0 24px;
}

.exp-rules-table th,
.exp-rules-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
}

.exp-rules-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: bold;
}

.exp-rules-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* SECTION 5: SEO / AEO / GEO CONTENT */
.exp-seo-article {
  margin-top: 32px;
  line-height: 1.65;
  color: #334155;
  font-size: 13.5px;
}

.exp-seo-article h2 {
  font-size: 19px;
  color: var(--exp-primary-blue);
  margin: 24px 0 10px;
  font-weight: bold;
}

.exp-seo-article h3 {
  font-size: 15.5px;
  color: #1e293b;
  margin: 18px 0 8px;
  font-weight: bold;
}

.exp-seo-article p {
  margin: 0 0 12px 0;
}

.exp-seo-article ul {
  margin: 8px 0 16px 20px;
  padding: 0;
}

.exp-seo-article li {
  margin-bottom: 6px;
}

/* FAQ Accordion Section */
.exp-faq-container {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
}

.exp-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}

.exp-faq-q {
  font-weight: bold;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-faq-q:hover {
  color: var(--exp-primary-blue);
}

.exp-faq-a {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

/* RIGHT SIDEBAR (Exact Match to Image 2) */
.exp-search-form {
  display: flex;
  margin-bottom: 20px;
  position: relative;
}

.exp-search-input {
  flex: 1;
  height: 25px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #7f9db9;
  border-right: none;
  background-color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.exp-search-input:focus {
  border-color: var(--exp-primary-blue);
}

.exp-search-btn {
  height: 25px;
  padding: 0 14px;
  background-color: #2c5f88;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  font-weight: normal;
  border: 1px solid #1f4366;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.exp-search-btn:hover {
  background-color: #1f476a;
}

.exp-search-dropdown {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #7f9db9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.exp-search-item {
  padding: 6px 10px;
  font-size: 12.5px;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.exp-search-item:hover {
  background-color: #eff6ff;
  color: var(--exp-primary-blue);
}

/* Math Calculators Card (Image 2 Replica) */
.exp-side-card {
  border: 1px solid #2c5f88;
  background-color: #ffffff;
}

.exp-side-card-title {
  background-color: #2c5f88;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
}

.exp-side-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
  gap: 4px 12px;
  font-size: 11.5px;
  background-color: #ffffff;
}

.exp-side-card-grid a {
  color: #0844a4;
  text-decoration: underline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-side-card-grid a:hover {
  color: #002277;
}

.exp-side-card-grid a.active {
  font-weight: bold;
  color: #000000;
  text-decoration: none;
}

.exp-side-card-grid a.full-span {
  grid-column: span 2;
}

.exp-side-card-grid a.more-link {
  grid-column: span 2;
}

.exp-side-card-footer {
  background-color: #f2f2f2;
  border-top: 1px solid #cccccc;
  padding: 5px 8px;
  font-size: 11.5px;
  color: #555555;
  text-align: center;
}

.exp-side-card-footer a {
  color: #0844a4;
  text-decoration: underline;
}

.exp-side-card-footer a:hover {
  color: #002277;
}

.exp-side-card-footer a.active-cat {
  font-weight: bold;
}

.exp-side-card-footer .sep {
  margin: 0 3px;
  color: #999999;
}

/* QUICK MODAL (Exact Clone of Image 1) */
.exp-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.exp-modal-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: modalScaleIn 0.15s ease-out;
}

.exp-modal-header {
  background-color: #003366;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
}

.exp-modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.exp-modal-body {
  padding: 20px 24px;
}

.exp-modal-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.exp-modal-field {
  flex: 1;
}

.exp-modal-field label {
  display: block;
  font-size: 13px;
  color: #333333;
  margin-bottom: 5px;
  font-weight: 500;
}

.exp-modal-field input {
  width: 100%;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.exp-modal-caret {
  font-size: 20px;
  font-weight: bold;
  margin-top: 18px;
}

.exp-modal-btn {
  width: 100%;
  background-color: #2b7a2d;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 16px;
}

.exp-modal-btn:hover {
  background-color: #236525;
}

.exp-modal-result {
  background-color: #eef8ea;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 12px 16px;
  text-align: center;
  font-size: 18px;
  color: #1e3a1f;
}

.exp-modal-result strong {
  font-size: 20px;
  color: #134e15;
}

/* SAVED CALCULATIONS DRAWER */
.exp-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  display: flex;
  justify-content: flex-end;
}

.exp-drawer {
  width: 360px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.exp-drawer-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-drawer-header h4 {
  margin: 0;
  font-size: 15px;
  color: #1e293b;
}

.exp-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.exp-drawer-item {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fdfdfd;
}

.exp-drawer-item-title {
  font-weight: bold;
  font-size: 13.5px;
  color: #0f172a;
}

.exp-drawer-item-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.exp-drawer-actions {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

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

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 800px) {
  .exp-main-layout {
    flex-direction: column;
  }
  .exp-sidebar-col {
    width: 100%;
  }
  .exp-equation-wrap {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   PRINT REPORT MODAL & PRINT STYLES
   ========================================================================== */
.exp-print-modal-card {
  max-width: 720px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.exp-modal-body.exp-print-body {
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  padding: 16px 20px;
  background: #ffffff;
}

.exp-modal-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-print-sheet {
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

.exp-print-header {
  border-bottom: 2px solid #0044aa;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.exp-print-header-brand {
  font-size: 17px;
  font-weight: 800;
  color: #0044aa;
  letter-spacing: -0.2px;
}

.exp-print-header-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.exp-print-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exp-print-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.exp-print-banner-eq {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
  font-family: monospace;
}

.exp-print-banner-desc {
  font-size: 12px;
  color: #3b82f6;
  margin-top: 3px;
}

.exp-print-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exp-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
}

.exp-print-table th,
.exp-print-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  text-align: left;
}

.exp-print-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  width: 32%;
}

.exp-print-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: #334155;
}

.exp-print-steps li {
  margin-bottom: 5px;
}

.exp-print-footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

/* RTL Support for Arabic */
html[dir="rtl"] .exp-breadcrumbs .sep {
  transform: scaleX(-1);
}

html[dir="rtl"] .exp-search-form {
  flex-direction: row-reverse;
}

html[dir="rtl"] .exp-top-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .exp-print-table th,
html[dir="rtl"] .exp-print-table td {
  text-align: right;
}

html[dir="rtl"] .exp-growth-table th,
html[dir="rtl"] .exp-growth-table td {
  text-align: left;
}

html[dir="rtl"] .exp-growth-table th:first-child,
html[dir="rtl"] .exp-growth-table td:first-child {
  text-align: center;
}

/* Print Stylesheet Isolation */
@media print {
  @page {
    size: letter portrait;
    margin: 12mm 15mm;
  }

  body.exp-printing-modal .site-header,
  body.exp-printing-modal .site-footer,
  body.exp-printing-modal .exp-page-container,
  body.exp-printing-modal .exp-drawer-backdrop,
  body.exp-printing-modal #exp-quick-modal,
  body.exp-printing-modal .exp-modal-header,
  body.exp-printing-modal .exp-modal-footer,
  body.exp-printing-modal .exp-modal-close-btn {
    display: none !important;
  }

  body.exp-printing-modal #exp-print-modal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
  }

  body.exp-printing-modal .exp-print-modal-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.exp-printing-modal .exp-modal-body.exp-print-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Fallback if user presses browser Ctrl+P without modal */
  body:not(.exp-printing-modal) .site-header,
  body:not(.exp-printing-modal) .site-footer,
  body:not(.exp-printing-modal) .exp-sidebar-col,
  body:not(.exp-printing-modal) .exp-top-bar,
  body:not(.exp-printing-modal) .exp-btn-row,
  body:not(.exp-printing-modal) .exp-modal-backdrop,
  body:not(.exp-printing-modal) .exp-drawer-backdrop {
    display: none !important;
  }

  body:not(.exp-printing-modal) .exp-calc-card,
  body:not(.exp-printing-modal) .exp-results-card {
    box-shadow: none !important;
    border: 1px solid #94a3b8 !important;
  }
}

.exp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: expToastIn 0.2s ease;
}

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