/* УНСС Custom CSS - Бордо тема */

/* ============= NAVBAR ============= */
.navbar {
  background: linear-gradient(135deg, #760e26 0%, #5a0a1c 100%) !important;
  padding-top: 0.5rem;    /* НОВО: намалява padding отгоре */
  padding-bottom: 0.5rem; /* НОВО: намалява padding отдолу */
  min-height: 50px;   
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-weight: 600;
  padding-top: 0;         /* НОВО: премахва padding */
  padding-bottom: 0;      /* НОВО: премахва padding */
}

.navbar-brand:hover {
  color: #f0f0f0 !important;
}

.navbar-logo {
  height: 35px;
  width: auto;
}

/* Navbar links */
.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding-top: 0.5rem;    /* НОВО: намален padding */
  padding-bottom: 0.5rem; /* НОВО: намален padding */
}

.navbar .nav-link:hover {
  color: #cfd6b4 !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #cfd6b4;
}

/* Dropdown в navbar */
.navbar .dropdown-menu {
  background-color: #5a0a1c;
}

.navbar .dropdown-item {
  color: #ffffff;
}

.navbar .dropdown-item:hover {
  background-color: #760e26;
  color: #cfd6b4;
}

/* ============= CARDS ============= */
.card {
  border: 1px solid #760e26;
  box-shadow: 0 2px 4px rgba(118, 14, 38, 0.1);
}

.card-body {
  padding: 1rem;
}

.card-header {
  background-color: #f5f0f1;
  color: #760e26;
  font-weight: 600;
}

/* ============= BUTTONS ============= */
.btn-primary {
  background: linear-gradient(135deg, #760e26 0%, #5a0a1c 100%);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a0a1c 0%, #3d0613 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(118, 14, 38, 0.2);
}

.btn-secondary {
  background-color: #cfd6b4;
  border: none;
  color: #5a0a1c;
}

.btn-secondary:hover {
  background-color: #b8c199;
  color: #5a0a1c;
}

/* ============= INPUTS ============= */
.selectize-input {
  border-color: #cfd6b4;
}

.selectize-input:focus {
  border-color: #760e26;
  box-shadow: 0 0 0 0.2rem rgba(118, 14, 38, 0.25);
}

.selectize-dropdown {
  z-index: 10000 !important;
  position: absolute !important;
}

/* ============= PROGRESS BAR ============= */
.progress-bar {
  background: linear-gradient(90deg, #760e26 0%, #5a0a1c 100%);
}

/* ============= PLOTLY ============= */
.plotly {
  width: 100% !important;
}

.js-plotly-plot .plotly .main-svg {
  position: absolute !important;
}

/* ============= LANGUAGE SELECTOR ============= */
.language-selector {
  display: flex;
  gap: 5px;
  padding: 8px;
}

.language-selector .btn {
  padding: 4px 8px;
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
}

.language-selector .btn:hover {
  background-color: rgba(207, 214, 180, 0.3);
  border-color: #cfd6b4;
}

/* Navbar title smooth transition */
.navbar-title-en,
.navbar-title-bg {
  transition: opacity 0.3s ease-in-out;
}

/* ============= MOD_DIRECTIVE MAP LAYOUT ============= */

/* Контейнер за двете карти */
.maps-container { /* ← ПРОМЕНЕНО от .directive-maps-container */
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

/* Wrapper за всяка карта */
.map-wrapper { /* ← ПРОМЕНЕНО от .directive-map-wrapper */
  flex: 1;
  min-width: 0;
  transition: all 0.3s ease;
}

/* Скриване на лявата карта при Change индикатори */
.map-wrapper:has(.shiny-panel-conditional[style*='display: none']) {
  flex: 0 0 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* Общ wrapper */
      .directive-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
      }
      
      /* РЕД 1: Карти */
      .directive-maps-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
      }
      
      /* При Change - лява карта колапсира */
      .directive-maps-row:has(.shiny-panel-conditional[style*='display: none']) {
        grid-template-columns: 0fr 1fr;
      }
      
      .directive-map-item {
        min-width: 0;
        transition: all 0.3s ease;
      }
      
      /* Скрита лява карта */
      .directive-map-item:has(.shiny-panel-conditional[style*='display: none']) {
        overflow: hidden;
        width: 0;
        min-width: 0;
        padding: 0;
        margin: 0;
      }
      
      /* РЕД 2: Таблица и графика */
      .directive-table-chart-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
      }
      
      .directive-table-item,
      .directive-chart-item {
        min-width: 0;
      }

