/* =========================================================
   منصة السوق السعودي للتعدين — Base Styles
   ========================================================= */

:root {
  --brand: #0B7A43;
  --brand-dark: #065C31;
  --gold: #C8A951;
  --gold-dark: #A88934;
  --ink: #1E293B;
  --muted: #64748B;
  --border: #D9DEE5;
  --surface: #F5F7FA;
  --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

html[dir="ltr"] {
  --font: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 16rem;
  inset-inline-start: 0;
  inset-inline-end: auto;
  border-inline-end: 1px solid var(--border);
}

html[dir="ltr"] .dashboard-sidebar {
  left: 0;
  right: auto;
}

html[dir="rtl"] .dashboard-sidebar {
  right: 0;
  left: auto;
}

.dashboard-main {
  min-height: 100vh;
  overflow-x: hidden;
}

html[dir="ltr"] .dashboard-main,
html[dir="rtl"] .dashboard-main {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 1024px) {
  html[dir="ltr"] .dashboard-main {
    margin-left: 16rem;
  }
  html[dir="rtl"] .dashboard-main {
    margin-right: 16rem;
  }
  html[dir="ltr"] .dashboard-main.is-collapsed {
    margin-left: 5rem;
  }
  html[dir="rtl"] .dashboard-main.is-collapsed {
    margin-right: 5rem;
  }
  .dashboard-sidebar.is-mobile-closed {
    transform: none !important;
  }
}

@media (max-width: 1023.98px) {
  html[dir="rtl"] .dashboard-sidebar.is-mobile-closed {
    transform: translateX(100%);
  }
  html[dir="ltr"] .dashboard-sidebar.is-mobile-closed {
    transform: translateX(-100%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus rings */
input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  outline: none;
}

/* Custom select dropdown scrollbar */
.custom-dropdown::-webkit-scrollbar {
  width: 6px;
}
.custom-dropdown::-webkit-scrollbar-thumb {
  background: #D9DEE5;
  border-radius: 999px;
}

/* Accordion chevron */
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

/* Auth wizard steps */
.auth-step {
  display: none;
}
.auth-step.is-active {
  display: block;
}

/* File upload hover */
.upload-zone:hover {
  border-color: var(--brand);
}

/* Charts container */
.chart-box {
  position: relative;
  width: 100%;
  height: 260px;
}

/* Utility: hide without display:none fight */
.is-hidden {
  display: none !important;
}

/* Page enter */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.45s ease both;
}
