/* =========================================================
   0) Page-level theme (background + base typography)
   ========================================================= */
:root{
  --bg: #f4f7fb;          /* soft blue-grey: best with blue accents + white cards */
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;        /* nicer than pure black */
  --muted: #6b7280;
  --shadow: 0 4px 10px rgba(15, 23, 42, 0.04);

  /* Optional accent you can reuse for highlights if you want */
  --accent: #2563eb;      /* clean “blue” */
}

html, body {
  background-color: var(--bg);
  color: var(--text);
}

/* If you have links */
a { color: var(--accent); }


/* =========================================================
   1) Offcanvas (your dashboard panel)
   ========================================================= */
#farm-offcanvas.offcanvas,
#farm-offcanvas .offcanvas-body {
  background-color: var(--bg) !important;
}

/* Optional: make the offcanvas feel less cramped */
#farm-offcanvas .offcanvas-body {
  padding: 1rem 1.25rem;
}


/* =========================================================
   2) Cards / containers
   ========================================================= */
.dash-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: var(--shadow);
}

/* Top controls */
.top-controls-card {
  padding: 0.5rem 0.75rem;
}

/* Main timeseries / Secondary selector spacing */
.main-timeseries-card,
.secondary-selector-card,
.wind-params-card,
.wind-metrics-card {
  padding-top: 0.5rem;
}

/* Future summary / secondary shells */
.future-summary-shell,
.future-secondary-shell {
  min-height: 260px;
}


/* =========================================================
   3) Titles / subtitles
   ========================================================= */
.section-title,
.card-section-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: 1rem;
}

.card-section-title {
  font-size: 0.95rem;
}

.section-subtitle {
  line-height: 1.3;
  color: var(--muted);
}

.dashboard-title {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dashboard-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}


/* =========================================================
   4) Inputs & dropdowns
   ========================================================= */
.Select-control,
.Select-multi-value-wrapper {
  font-size: 0.85rem;
}

.input-group-text {
  font-size: 0.8rem;
  color: var(--muted);
}


/* =========================================================
   5) Alerts used as empty states
   ========================================================= */
.alert-light {
  border-radius: 8px;
  border-color: var(--border);
  background-color: #f9fafb;
  color: #4b5563;
}


/* =========================================================
   6) Feature shells (wind cards hidden until active)
   ========================================================= */
.wind-shell { display: none; }
.wind-shell.is-active { display: block; }


/* =========================================================
   7) Small improvements for spacing on narrow screens
   ========================================================= */
@media (max-width: 768px) {
  .top-controls-card .row > .col-auto {
    margin-top: 0.5rem;
  }

  .secondary-selector-card .row > .col-auto {
    margin-top: 0.5rem;
  }

  .future-summary-shell,
  .future-secondary-shell {
    margin-bottom: 0.75rem;
  }
}

/* Rads heading custom */

.app-header {
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
}

.app-title {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.app-title-main {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
}

.app-title-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827; /* your blue accent */
}

.app-tagline {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.1rem;
}


/* side panel layout */
/* Sidebar container */
.asset-sidebar {
  height: 100%;
  max-height: 800px;
  overflow-y: auto;

  background: var(--bg);          /* same as app background */
  border-left: 1px solid var(--border);
  padding: 12px;
}

/* Header */
.asset-sidebar-header {
  margin-bottom: 10px;
  padding: 10px 10px 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65); /* subtle panel on top of bg */
  border: 1px solid var(--border);
}

.asset-sidebar-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  color: var(--text);
}

.asset-sidebar-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Sections */
.asset-section {
  margin-top: 12px;
}

.asset-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 6px 8px 6px;
}

.asset-section-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

/* Asset buttons styled like list items (no underline) */
.asset-item-btn.btn {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);

  color: var(--text);
  text-decoration: none !important;    /* remove underline */
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.asset-item-btn.btn:hover {
  background: #ffffff;
  border-color: #dbe2ea;
  transform: translateY(-1px);
  transition: 120ms ease;
  text-decoration: none !important;
}

/* Also ensure link-style bootstrap buttons never underline */
.asset-item-btn.btn-link,
.asset-item-btn.btn-link:hover,
.asset-item-btn.btn-link:focus {
  text-decoration: none !important;
}

/* Optional: nicer focus ring */
.asset-item-btn.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Fully neutral tabs — force override Bootstrap defaults */
.clean-tabs .nav-tabs {
  border-bottom: 1px solid var(--border) !important;
}

.clean-tabs .nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  font-size: 0.85rem;

  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;

  padding: 0.5rem 0.75rem;
  margin-right: 0.75rem;

  box-shadow: none !important;          /* kills blue glow in some themes */
  outline: none !important;
}

.clean-tabs .nav-link:hover {
  color: var(--text) !important;
  background: transparent !important;
}

/* Active tab: neutral grey underline, no blue background */
.clean-tabs .nav-link.active,
.clean-tabs .nav-tabs .nav-link.active {
  color: var(--text) !important;
  font-weight: 600 !important;

  background: transparent !important;   /* THIS is usually the culprit */
  border: none !important;
  border-bottom: 2px solid #9ca3af !important; /* neutral grey */
  box-shadow: none !important;
}

/* Focus ring (often blue) — neutralize it */
.clean-tabs .nav-link:focus,
.clean-tabs .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


.logout-btn {
    background-color: #2c2c2c !important;  /* dark grey/near black */
    color: white !important;
    border: none !important;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 500;
    transition: 0.2s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #000000 !important;  /* pure black */
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

