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

:root {
  --bs-body-bg: #f5f7fa;
  --primary: #17418a;
  --bs-body-color: #1a1a2e;
  --copper: #17418a;
  --copper-glow: #2a5bb0;
  --emerald: #3d9970;
  --charcoal: #f5f7fa;
  --charcoal-light: #ebeef3;
  --card-bg: #ffffff;
  --border-color: #dde1e7;
  --muted-color: #6b7280;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --hero-overlay-start: rgba(245, 247, 250, 0.2);
  --hero-overlay-mid: rgba(245, 247, 250, 0.7);
  --hero-overlay-end: rgba(245, 247, 250, 1);
  --search-bg: rgba(0, 0, 0, 0.04);
  --search-border: rgba(0, 0, 0, 0.1);
  --search-placeholder: rgba(0, 0, 0, 0.35);
  --search-focus-bg: rgba(0, 0, 0, 0.06);
  --kbd-bg: rgba(0, 0, 0, 0.06);
  --kbd-border: rgba(0, 0, 0, 0.1);
  --stat-box-bg: #e8ecf1;
  --badge-muted-bg: #e2e6ec;
  --table-bg: transparent;
  --table-color: var(--bs-body-color);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/*
Source - https://stackoverflow.com/a/50829157
Posted by Steve Lautenschlager
Retrieved 2026-03-09, License - CC BY-SA 4.0
*/

body {
  font-family: var(--font-body);
  background-color: var(--charcoal);
  color: var(--bs-body-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Custom card */
.card-mine {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.card-mine:hover {
  border-color: rgba(23, 65, 138, 0.5);
  box-shadow: 0 0 30px rgba(23, 65, 138, 0.1);
  transform: translateY(-2px);
}

/* Gradient text */
.text-copper {
  color: var(--copper) !important;
}
.text-gradient-copper {
  background: linear-gradient(135deg, var(--copper), var(--copper-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge copper */
.badge-copper {
  background: linear-gradient(135deg, var(--copper), var(--copper-glow));
  color: #ffffff;
  font-weight: 600;
}

/* Stat border */
.stat-item {
  border-left: 2px solid rgba(23, 65, 138, 0.6);
  padding-left: 1rem;
}
.stat-item .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 0 40px rgba(23, 65, 138, 0.4);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
}
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--hero-overlay-start) 0%,
    var(--hero-overlay-mid) 60%,
    var(--hero-overlay-end) 100%
  );
}

/* ===== NAVBAR (Bootstrap 5 overrides) ===== */
.navbar-mine {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1060;
}
.navbar-mine-menu {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1050;
  overflow: visible;
}
.navbar-mine-menu .navbar-nav {
  position: relative;
}
.navbar-mine-menu .nav-item.dropdown {
  position: relative;
}
.navbar-mine-menu .nav-item.dropdown > .dropdown-menu {
  position: absolute !important;
  top: 100%;
  left: 0;
  z-index: 9999;
}
/* Last menu items: align dropdown to right edge */
.navbar-mine-menu .nav-item.dropdown > .dropdown-menu.dropdown-menu-end {
  left: auto;
  right: 0;
}
.navbar-mine-menu .nav-link {
  color: var(--muted-color) !important;
  font-size: 0.9rem;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
}
.navbar-mine-menu .nav-link:hover,
.navbar-mine-menu .nav-link:focus {
  color: var(--copper) !important;
}
.navbar-mine-menu .nav-link.active-link {
  color: var(--copper) !important;
  position: relative;
  font-weight: 600;
}
.navbar-mine-menu .nav-link.active-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
}
.navbar-mine .nav-link {
  color: var(--muted-color) !important;
  font-size: 0.8rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.navbar-mine .nav-link:hover,
.navbar-mine .nav-link:focus {
  color: var(--copper) !important;
}
.navbar-mine .navbar-toggler-icon {
  filter: invert(0.4);
}

/* Dropdown menus themed */
.dropdown-menu-dark-mine {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid rgba(23, 65, 138, 0.12);
  border-radius: 0 0 10px 10px;
  box-shadow:
    0 4px 6px -1px rgba(23, 65, 138, 0.08),
    0 12px 28px -4px rgba(23, 65, 138, 0.15),
    0 0 0 1px rgba(23, 65, 138, 0.04);
  padding: 0.4rem;
  min-width: auto;
  width: max-content;
  white-space: nowrap;
  animation: dropdownSlide 0.2s ease-out;
  overflow: visible;
}
/* Menus simples du menu principal: scroll vertical uniquement */
.navbar-mine-menu .dropdown-menu-dark-mine:not(:has(.dropend)):not(:has(.dropstart-mine)) {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Indicateur de scroll en bas du menu principal */
.navbar-mine-menu .dropdown-menu-dark-mine:not(:has(.dropend)):not(:has(.dropstart-mine))::after {
  content: '⌄';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  text-align: center;
  padding: 2px 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--copper);
  background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0));
  pointer-events: none;
  z-index: 10;
}

/* Menus avec sous-menus imbriqués: pas de clipping horizontal */
.dropdown-menu-dark-mine:has(.dropend),
.dropdown-menu-dark-mine:has(.dropstart-mine) {
  max-height: none;
  overflow: visible;
}
@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-menu-dark-mine .dropdown-item {
  color: #2d3748;
  font-size: 0.84rem;
  font-weight: 450;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.18s ease;
  position: relative;
  letter-spacing: 0.01em;
}
.dropdown-menu-dark-mine .dropdown-item:hover,
.dropdown-menu-dark-mine .dropdown-item:focus {
  background: linear-gradient(135deg, rgba(23, 65, 138, 0.08) 0%, rgba(23, 65, 138, 0.04) 100%);
  color: var(--copper);
  padding-left: 1.1rem;
}
.dropdown-menu-dark-mine .dropdown-item:active {
  background: rgba(23, 65, 138, 0.14);
  color: #17418a;
}
.dropdown-menu-dark-mine .dropdown-item .dropdown-toggle::after {
  opacity: 0.5;
  transition: opacity 0.15s;
}
.dropdown-menu-dark-mine .dropdown-item:hover .dropdown-toggle::after {
  opacity: 1;
}
.dropdown-menu-dark-mine .dropdown-divider {
  border-color: rgba(23, 65, 138, 0.08);
  margin: 0.25rem 0.5rem;
}

/* Nested dropend submenu */
/* Nested dropend submenu */
.dropend {
  position: relative;
}
.dropend > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100% !important;
  margin-left: 2px;
  display: none;
  z-index: 9999;
  border-radius: 0 0 10px 10px;
}

.dropend > .dropdown-item.dropdown-toggle::after {
  content: "›";
  border: none;
  font-size: 1.1rem;
  vertical-align: middle;
  margin-left: 0.4rem;
  float: right;
}
.dropend:hover > .dropdown-menu,
.dropend:focus-within > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Keep parent dropdown open when hovering nested */
.dropdown-menu-dark-mine .dropend:hover {
  background: linear-gradient(135deg, rgba(23, 65, 138, 0.08) 0%, rgba(23, 65, 138, 0.04) 100%);
  border-radius: 6px;
}

/* Nested dropstart submenu (opens left) */
.dropstart-mine {
  position: relative;
}
.dropstart-mine > .dropdown-menu {
  position: absolute;
  top: 0;
  right: 100% !important;
  left: auto !important;
  margin-right: 2px;
  display: none;
  z-index: 9999;
  border-radius: 0 0 10px 10px;
}
.dropstart-mine > .dropdown-item.dropdown-toggle::after {
  content: "‹";
  border: none;
  font-size: 1.1rem;
  vertical-align: middle;
  margin-left: 0;
  margin-right: 0.4rem;
  float: left;
}
.dropstart-mine:hover > .dropdown-menu,
.dropstart-mine:focus-within > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.dropdown-menu-dark-mine .dropstart-mine:hover {
  background: linear-gradient(135deg, rgba(23, 65, 138, 0.08) 0%, rgba(23, 65, 138, 0.04) 100%);
  border-radius: 6px;
}

/* 3rd level: open below instead of further left */
.dropstart-mine--below > .dropdown-menu {
  top: 100% !important;
  right: auto !important;
  left: 0 !important;
  margin-right: 0;
  margin-top: 2px;
  border-radius: 0 0 10px 10px;
}
.dropstart-mine--below > .dropdown-item.dropdown-toggle::after {
  content: "⌄";
  float: right;
  margin-left: 0.4rem;
  margin-right: 0;
}

/* Mobile/Tablet: nested submenus open below instead of sideways */
@media (max-width: 991.98px) {
  /* Make the header scrollable on mobile when menu is open */
  .fixed-top {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .dropstart-mine > .dropdown-menu,
  .dropend > .dropdown-menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0.75rem;
    background: rgba(23, 65, 138, 0.03);
  }
  .dropstart-mine--below > .dropdown-menu {
    position: relative !important;
    padding-left: 1.25rem;
  }
  /* On mobile, show nested menus on click (Bootstrap handles toggle) */
  .dropstart-mine:hover > .dropdown-menu,
  .dropstart-mine:focus-within > .dropdown-menu,
  .dropend:hover > .dropdown-menu,
  .dropend:focus-within > .dropdown-menu {
    display: block !important;
  }
  /* Also make all dropdowns flow naturally on mobile */
  .navbar-mine-menu .nav-item.dropdown > .dropdown-menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: auto;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding-left: 0.5rem;
    background: transparent;
  }
}

/* Search bar */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 10px;
  color: var(--muted-color);
  pointer-events: none;
  z-index: 2;
}
.search-input {
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 8px;
  color: var(--bs-body-color);
  font-size: 0.8rem;
  padding: 6px 50px 6px 32px;
  width: 200px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  outline: none;
}
.search-input::placeholder {
  color: var(--search-placeholder);
}
.search-input:focus {
  background: var(--search-focus-bg);
  border-color: var(--copper);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(23, 65, 138, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}
.search-kbd {
  position: absolute;
  right: 8px;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  color: var(--muted-color);
  font-family: inherit;
  pointer-events: none;
}

/* Section bg alt */
.bg-charcoal {
  background-color: var(--charcoal);
}
.bg-charcoal-light {
  background-color: var(--charcoal-light);
}

/* Muted text */
.text-muted-mine {
  color: var(--muted-color) !important;
}

/* Chart container */
.chart-container {
  background-color: var(--charcoal);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}

/* Progress bar inline */
.progress-bar-mine {
  height: 6px;
  background: linear-gradient(90deg, var(--copper), var(--copper-glow));
  border-radius: 3px;
  display: inline-block;
  min-width: 20px;
}

.table-dark {
  --bs-table-bg: var(--table-bg);
  --bs-table-color: var(--table-color);
}

/* Tracking */
.tracking-widest {
  letter-spacing: 0.1em;
}

/* Pill badge muted */
.badge-muted {
  background-color: var(--badge-muted-bg);
  color: var(--muted-color);
  font-weight: 400;
}

/* Stat box */
.stat-box {
  background-color: var(--stat-box-bg);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

/* Footer */
.footer-mine {
  background-color: #1a4691;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #e8edf5;
}
.footer-mine .text-muted-mine {
  color: rgba(255,255,255,0.55) !important;
}
.footer-mine .footer-contact-form .form-control {
  color: #1a1a2e;
  border-color: rgba(255,255,255,0.3);
  background-color: #fff;
}
.footer-mine .footer-contact-form .form-control::placeholder {
  color: #888;
}
.footer-mine .footer-heading {
  color: #fff;
}
.footer-mine .footer-contact-icon {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.footer-lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.footer-lang-btn:hover {
  color: rgba(255,255,255,0.8);
}
.footer-lang-btn.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Filter trigger button */
.filter-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--stat-box-bg);
  border: 1px solid var(--border-color);
  color: var(--muted-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-trigger-btn:hover {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

/* Filter modal */
.filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.filter-modal {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.filter-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}
.filter-modal-close {
  background: var(--stat-box-bg);
  border: none;
  color: var(--muted-color);
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-modal-close:hover {
  background: var(--border-color);
  color: var(--bs-body-color);
}
.filter-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bs-body-color);
  letter-spacing: 0.01em;
}
.filter-label-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 40px 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--bs-body-color);
  background-color: var(--charcoal);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.filter-select:hover {
  border-color: var(--copper);
}
.filter-select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(23, 65, 138, 0.12);
}
.filter-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--charcoal);
  border-radius: 0 0 16px 16px;
}
.filter-btn-reset {
  background: none;
  border: 1.5px solid var(--border-color);
  color: var(--muted-color);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn-reset:hover {
  background: var(--stat-box-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-body-color);
}
.filter-btn-apply {
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn-apply:hover {
  opacity: 0.9;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Newsletter band */
.footer-newsletter-band {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--copper), var(--copper-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.footer-newsletter-input {
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  border-radius: 10px !important;
}

/* Footer button */
.footer-btn-primary {
  background: linear-gradient(135deg, var(--copper), var(--copper-glow));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.footer-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(23,65,138,0.35);
  color: #fff;
}

/* Brand icon */
.footer-brand-icon {
  color: var(--copper);
}

/* Heading */
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), transparent);
  border-radius: 1px;
}

/* Nav links */
.footer-nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  padding: 2px 0;
}
.footer-nav-link:hover {
  color: var(--copper);
  padding-left: 4px;
}

/* Contact items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(23,65,138,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
}

/* Social icons */
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-social-icon:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(23,65,138,0.08);
  transform: translateY(-2px);
}

/* Contact form */
.footer-contact-form .form-control {
  border-radius: 8px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid var(--border-color);
  color: var(--bs-body-color);
  padding: 10px 14px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.footer-contact-form .form-control::placeholder {
  color: var(--muted-color);
  opacity: 0.7;
}
.footer-contact-form .form-control:focus {
  background-color: #fff;
  border-color: var(--copper);
  color: var(--bs-body-color);
  box-shadow: 0 0 0 3px rgba(23, 65, 138, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}
.footer-bottom-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.footer-bottom-link:hover {
  color: var(--copper);
}

/* ===== MINERAL TICKER ===== */
.mineral-ticker-wrap {
  background: linear-gradient(90deg, #0d1b3e 0%, #17418a 50%, #0d1b3e 100%);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mineral-ticker-wrap::before,
.mineral-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.mineral-ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #0d1b3e, transparent);
}
.mineral-ticker-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #0d1b3e, transparent);
}

.mineral-ticker-track {
  display: flex;
  gap: 0;
  animation: tickerScroll 60s linear infinite;
  width: max-content;
  padding: 8px 0;
}
.mineral-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mineral-ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  flex-shrink: 0;
}
.mineral-ticker-icon {
  font-size: 0.9rem;
}
.mineral-ticker-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mineral-ticker-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.95);
}
.mineral-ticker-price small {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.mineral-ticker-change {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
}
.mineral-ticker-change.up {
  color: #22c55e;
  background: rgba(34,197,94,0.12);
}
.mineral-ticker-change.down {
  color: #ef4444;
  background: rgba(239,68,68,0.12);
}
.mineral-ticker-meta {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.mineral-ticker-sale {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== CONTRACTS DASHBOARD ===== */
.contracts-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .contracts-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.contracts-summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}
.contracts-summary-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
}
.contracts-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.contracts-summary-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
}
.contracts-summary-label {
  font-size: 0.7rem;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ===== MINING DASHBOARD ===== */
.dashboard-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.dashboard-card:hover {
  border-color: rgba(23, 65, 138, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(23, 65, 138, 0.1);
}

.dashboard-card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(23, 65, 138, 0.04) 0%, transparent 100%);
}

.dashboard-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* KPI Row */
.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.dashboard-kpi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  border-radius: 0.6rem;
  background: var(--stat-box-bg);
  transition: transform 0.2s;
}
.dashboard-kpi:hover {
  transform: scale(1.03);
}
.dashboard-kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.dashboard-kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}
.dashboard-kpi-label {
  font-size: 0.65rem;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Table */
.dashboard-table-wrap {
  padding: 0.75rem 1.5rem 1.5rem;
  overflow-x: auto;
}
.dashboard-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: separate;
  border-spacing: 0;
}
.dashboard-table thead th {
  color: var(--muted-color);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.dashboard-table tbody tr {
  transition: background 0.15s;
}
.dashboard-table tbody tr:hover {
  background: rgba(23, 65, 138, 0.05);
}
.dashboard-table tbody td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.dashboard-table tbody td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
.dashboard-table tfoot td {
  padding: 0.75rem 0.5rem;
  border-top: 2px solid var(--border-color);
  font-size: 0.8rem;
}

/* Badges */
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
}
.dashboard-badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.25);
}
.dashboard-badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}
.dashboard-badge-muted {
  background: var(--stat-box-bg);
  color: var(--muted-color);
  border-color: var(--border-color);
}

/* Progress bars */
.dashboard-progress-track {
  height: 5px;
  background: var(--stat-box-bg);
  border-radius: 3px;
  overflow: hidden;
}
.dashboard-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form controls dark */
.form-control-dark {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--bs-body-color);
  transition: border-color 0.2s;
}
.form-control-dark:focus {
  background-color: var(--card-bg);
  border-color: var(--copper);
  color: var(--bs-body-color);
  box-shadow: 0 0 0 3px rgba(23, 65, 138, 0.2);
}
.form-control-dark:disabled {
  opacity: 0.5;
}

/* User button */
.btn-user {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--muted-color);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  padding: 4px 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-user:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* Profile dropdown: no caret, fixed positioning */
.btn-user[data-bs-toggle="dropdown"]::after {
  display: none !important;
}
/* Profile dropdown container */
.navbar-mine .dropdown {
  position: relative;
}
.navbar-mine .dropdown > .dropdown-menu-dark-mine,
.navbar-mine .dropdown > .dropdown-menu-dark-mine.show {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 200px;
  margin-top: 0 !important;
  z-index: 9999;
}

/* ===== Operators page ===== */
.operators-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.operators-breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-color);
}
.operators-breadcrumb li a {
  color: var(--copper);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.operators-breadcrumb li a:hover {
  opacity: 0.7;
}
.operators-breadcrumb li.separator {
  margin: 0 6px;
  color: var(--border-color);
}
.operators-breadcrumb li.active {
  font-weight: 600;
  color: var(--bs-body-color);
}

/* Search box */
.operators-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 8px;
  padding: 8px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.operators-search-box:focus-within {
  border-color: var(--copper);
  background: var(--search-focus-bg);
}
.operators-search-box svg {
  color: var(--muted-color);
  flex-shrink: 0;
}
.operators-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.88rem;
  color: var(--bs-body-color);
  font-family: var(--font-body);
}
.operators-search-box input::placeholder {
  color: var(--search-placeholder);
}

/* Status chips */
.operators-status-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-color);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.operators-status-chip:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.operators-status-chip.active {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

/* Buttons */
.operators-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.2s;
  white-space: nowrap;
}
.operators-btn-primary {
  background: var(--copper);
  color: #fff;
}
.operators-btn-primary:hover {
  background: var(--copper-glow);
}
.operators-btn-outline {
  background: transparent;
  color: var(--copper);
  border: 1px solid var(--copper);
}
.operators-btn-outline:hover {
  background: var(--copper);
  color: #fff;
}

/* Action buttons */
.operators-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--muted-color);
  cursor: pointer;
  transition: all 0.2s;
}
.operators-action-btn:hover {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}
.operators-action-btn-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.pagination > li > a
{
    background-color: white;
    color: #17418a;
}

.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover
{
    color: #17418a;
    background-color: #eee;
    border-color: #ddd;
}

.pagination > .active > a
{
  color: white;
  background-color: #17418a;
  border: solid 1px #17418a;
}

.pagination > .active > a:hover
{
  background-color: #17418a;
  border: solid 1px #17418a;
}
