/* ============================================================
   HARTA ADISG — Modern UI Stylesheet
   Versiune: 2.0
   Descriere: Îmbunătățiri vizuale complete pentru aplicația
              de hartă transport Dacia (harta_adisg.php + map.php)
   Utilizare: <link rel="stylesheet" href="harta_adisg_modern.css">
   ============================================================ */

/* ── 1. CSS VARIABLES (Paleta de culori & Tokens) ─────────── */
:root {
  --brand-blue:       #1574f5;
  --brand-blue-dark:  #0d5cc7;
  --brand-blue-light: #e8f0fe;
  --brand-navy:       #1a237e;
  --brand-orange:     #ec6528;
  --brand-orange-dk:  #c9511a;
  --brand-green:      #b3cc23;

  --bg-white:         #ffffff;
  --bg-light:         #f4f6fb;
  --bg-glass:         rgba(255, 255, 255, 0.94);

  --text-primary:     #1a1a2e;
  --text-secondary:   #5a6072;
  --text-muted:       #9aa0b4;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.13);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.18);
  --shadow-blue: 0 4px 18px rgba(21, 116, 245, 0.38);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --bar-height: 58px;
  --font-main: 'Poppins', 'Segoe UI', sans-serif;
}


/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, ::before, ::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── 3. HARTA (iframe + container) ───────────────────────── */
#map1 {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#map1 iframe#map2 {
  border: none;
  border-radius: 0;
}

#map {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
}


/* ── 4. BARA DE JOS (bottom navigation) ──────────────────── */
[data-role="header"] {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  height: var(--bar-height) !important;
  width: 100%;
  background: transparent !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center;
    border-color: transparent !important;
}

/* Butonul Meniu (stânga jos) */
#main-menu {
  z-index: 1000 !important;
  position: fixed !important;
  bottom: 9px !important;
  left: 10px !important;
  width: 42px;
  height: 42px;
  background: var(--bg-white) !important;
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid rgba(0,0,0,0.10) !important;
  box-shadow: var(--shadow-sm) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

#main-menu:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-md) !important;
}

#main-menu img {
  width: 26px !important;
  height: 26px !important;
  margin-top: 0 !important;
}

/* Butonul Search (dreapta jos) */
#search_icon {
  z-index: 1000 !important;
  position: fixed !important;
  bottom: 9px !important;
  right: 10px !important;
  width: 42px;
  height: 42px;
  background: var(--brand-blue) !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  box-shadow: var(--shadow-blue) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

#search_icon:active {
  transform: scale(0.92);
}

#search_icon img {
  width: 24px !important;
  height: 24px !important;
  margin-top: 0 !important;
  filter: brightness(0) invert(1);
}


/* ── 5. MENIU LATERAL (overlay panel) ────────────────────── */
[data-role="panel"]#overlayPanel {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-blue) 100%) !important;
  min-height: 10% !important;
  position: fixed !important;
  bottom: var(--bar-height) !important;
  z-index: 999 !important;
  padding: 10px 0 6px !important;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: 4px 0 32px rgba(21, 116, 245, 0.25) !important;
}

.bottons-agileits-w3layouts {
  width: 100% !important;
  padding: 0 8px !important;
}

.bottons-agileits-w3layouts p {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.bottons-agileits-w3layouts p:active {
  background: rgba(255,255,255,0.12);
}

.bottons-agileits-w3layouts a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  letter-spacing: 0.2px;
}

.bottons-agileits-w3layouts a i.fa {
  width: 32px;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.13);
  border-radius: 8px;
  font-size: 15px !important;
  flex-shrink: 0;
  transition: background var(--transition);
}

.bottons-agileits-w3layouts a:hover i.fa,
.bottons-agileits-w3layouts a:active i.fa {
  background: rgba(255,255,255,0.25);
}

.bottons-agileits-w3layouts hr {
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  margin: 2px 16px !important;
}


/* ── 6. BARA SEARCH (live search input) ──────────────────── */
.search,
div#mydiv.search {
  z-index: 998 !important;
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 82% !important;
  max-width: 480px;
  margin: 0 !important;
}

.search input,
div#mydiv.search input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(21, 116, 245, 0.15);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231574f5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.search input:focus,
div#mydiv.search input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 116, 245, 0.14), var(--shadow-md);
}

/* Rezultate live search */
div[id^="livesearchloc"] {
  background: var(--bg-white) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  overflow: hidden;
  margin-top: 6px;
}

div[id^="livesearchloc"] > div {
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background var(--transition);
}

div[id^="livesearchloc"] > div:last-child {
  border-bottom: none;
}

div[id^="livesearchloc"] > div:hover {
  background: var(--brand-blue-light) !important;
  color: var(--brand-blue) !important;
}


/* ── 7. CARD DETALII STAȚIE (panel detalii) ──────────────── */
.detalii,
div.detalii#detalii {
  z-index: 998 !important;
  position: fixed !important;
  bottom: 68px !important;
  left: 4% !important;
  width: 92% !important;
  border: none !important;
  border-bottom: none !important;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 12px;
  animation: slideUpFade 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Titlu stație */
.detalii .restaurantname a,
#detalii_denumire {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  line-height: 1.3;
}

/* Adresa */
#detalii_adresa {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 8px;
}

/* Rândul distanță / timp */
.delivery-cost,
.avgdeliverytime {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 2px 0;
}

.delivery-cost::before {
  content: "📍 ";
}

.avgdeliverytime::before {
  content: "⏱ ";
}

/* Butonul NAVIGARE — redesign complet */
#detalii_nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
  color: var(--bg-white) !important;
  border-radius: var(--radius-md) !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-main);
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-blue) !important;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  width: 100%;
  margin-top: 6px;
}

#detalii_nav::before {
  content: "▶";
  font-size: 12px;
  opacity: 0.85;
}

#detalii_nav:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(21, 116, 245, 0.3) !important;
}

/* Buton închidere detalii */
span[onclick*="detalii"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-light) !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  color: var(--text-secondary) !important;
  padding: 0 !important;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

span[onclick*="detalii"]:active {
  background: #e0e0e0 !important;
}


/* ── 8. MODALS — redesign Bootstrap ──────────────────────── */
.modal-content {
  border: none !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%) !important;
  color: var(--bg-white) !important;
  border-bottom: none !important;
  padding: 14px 18px !important;
  border-radius: 0 !important;
}

.modal-header b,
.modal-header center b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--bg-white) !important;
}

.modal-header .close {
  color: rgba(255,255,255,0.7) !important;
  opacity: 1 !important;
  font-size: 22px;
  transition: color var(--transition);
}

.modal-header .close:hover {
  color: var(--bg-white) !important;
}

.modal-body {
  padding: 18px !important;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.65;
}


/* ── 9. FORMULARE (Login / Auto) ─────────────────────────── */
#frmLogin input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(21, 116, 245, 0.2);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-light);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 10px;
}

#frmLogin input[type="text"]:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 116, 245, 0.12);
  background: var(--bg-white);
}

/* Checkbox + label personalizate */
input[type="checkbox"] {
  accent-color: var(--brand-blue);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

label.button_security,
label.button_gdpr {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--brand-blue) !important;
  background: var(--brand-blue-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 16px !important;
  display: inline-block;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1.5 !important;
  height: auto !important;
}

label.button_security:active,
label.button_gdpr:active {
  background: rgba(21, 116, 245, 0.2) !important;
}

/* Butonul Salveaza / OK */
.salveaza,
input.salveaza[type="button"],
input.salveaza[type="submit"] {
  display: block !important;
  width: auto !important;
  min-width: 120px;
  padding: 12px 28px !important;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
  color: var(--bg-white) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-main);
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: var(--shadow-blue) !important;
  margin: 12px auto !important;
  transition: transform var(--transition), box-shadow var(--transition);
}

.salveaza:hover,
input.salveaza:hover {
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-navy) 100%) !important;
}

.salveaza:active,
input.salveaza:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(21, 116, 245, 0.3) !important;
}


/* ── 10. LOADING INDICATOR ───────────────────────────────── */
#loading,
#loading2 {
  display: none;
  position: fixed !important;
  z-index: 9999 !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  min-width: 200px;
  margin: 0 !important;
  background: var(--bg-white) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: none !important;
  padding: 28px 32px !important;
  text-align: center !important;
}

#loading::before,
#loading2::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(21, 116, 245, 0.15);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

#loading > div,
#loading2 > div {
  display: none; /* Ascundem gif-ul vechi, folosim pseudo-elementul CSS */
}

#loading center b,
#loading2 center b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Overlay semitransparent în spate */
#loading::after,
#loading2::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: -1;
  pointer-events: none;
}

/* Loading vechi (spinner animat cu box-shadow) */
.loading {
  display: none !important; /* Înlocuit cu noul #loading */
}


/* ── 11. BUTOANE LOCALIZARE / STERGERE RUTA (map.php) ─────── */
#locate,
#remove,
#reroute {
  z-index: 999 !important;
  position: fixed !important;
  right: 10px !important;
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid rgba(0,0,0,0.09) !important;
  background: var(--bg-white) !important;
  box-shadow: var(--shadow-sm) !important;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

#locate {
  top: 70px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#remove,
#reroute {
  top: 124px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#locate:active,
#remove:active,
#reroute:active {
  transform: scale(0.91);
  box-shadow: var(--shadow-md) !important;
}

#locate img,
#remove img,
#reroute img {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
}


/* ── 12. POPUP-URI LEAFLET ───────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden;
  font-family: var(--font-main) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  line-height: 1.4 !important;
  min-width: 120px;
  text-align: center !important;
}

.leaflet-popup-tip-container {
  width: 24px !important;
  height: 12px !important;
  margin-left: -12px !important;
}

.leaflet-popup-tip {
  width: 10px !important;
  height: 10px !important;
  background: var(--bg-white) !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  display: none !important;
}


/* ── 13. CLUSTER MARKERS ─────────────────────────────────── */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  border-radius: 50%;
  background-clip: padding-box;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 12px rgba(21, 116, 245, 0.35);
}

.marker-cluster-small {
  background-color: rgba(21, 116, 245, 0.75) !important;
}

.marker-cluster-small div {
  background-color: rgba(21, 116, 245, 0.95) !important;
  border-radius: 50%;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 13px;
}

.marker-cluster-medium {
  background-color: rgba(236, 101, 40, 0.75) !important;
}

.marker-cluster-medium div {
  background-color: rgba(236, 101, 40, 0.95) !important;
  border-radius: 50%;
  color: var(--bg-white);
  font-weight: 700;
}

.marker-cluster-large {
  background-color: rgba(26, 35, 126, 0.75) !important;
}

.marker-cluster-large div {
  background-color: rgba(26, 35, 126, 0.95) !important;
  border-radius: 50%;
  color: var(--bg-white);
  font-weight: 700;
}


/* ── 14. SWITCH STRATURI HARTĂ (control layers) ──────────── */
.leaflet-control-layers {
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-main) !important;
  overflow: hidden;
}

.leaflet-control-layers-toggle {
  width: 36px !important;
  height: 36px !important;
}

.leaflet-control-layers-expanded {
  padding: 10px 14px !important;
  font-size: 13px !important;
  background: var(--bg-glass) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.leaflet-control-layers label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}


/* ── 15. TABELE ORAR (modal9 - detalii statie) ───────────── */
.table_orar {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 4px !important;
  font-size: 13px !important;
  text-align: center !important;
  border: none !important;
}

.table_orar td {
  padding: 7px 10px !important;
  background: var(--bg-light);
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  color: var(--text-primary);
  border: none !important;
}

.table_orar tr:first-child td {
  background: transparent !important;
}

.table_orar tr:nth-child(2) td {
  background: var(--brand-blue) !important;
  color: var(--bg-white) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Etichete ORAR-DUS / ORAR-INTORS */
.baloon-container.restaurantlabel.balloon_new::before {
  background-color: var(--brand-blue) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  padding: 3px 10px !important;
  letter-spacing: 0.5px;
}


/* ── 16. BUTONUL INSTALARE APP ───────────────────────────── */
.add-button {
  z-index: 99 !important;
  position: fixed !important;
  bottom: 68px !important;
  right: 10px !important;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
  color: var(--bg-white) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font-main) !important;
  padding: 10px 16px !important;
  box-shadow: var(--shadow-blue) !important;
  cursor: pointer;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-blue); }
  50%       { box-shadow: 0 4px 28px rgba(21, 116, 245, 0.6); }
}


/* ── 17. ICOANE (direction / rezervation / orar / traseu) ─── */
.direction::before {
  font-family: fontello !important;
  content: "\e833";
  margin-right: 5px;
  color: var(--brand-orange) !important;
  font-size: 15px;
}

.rezervation::before {
  font-family: fontello !important;
  content: "\e887";
  margin-right: 5px;
  color: var(--brand-orange) !important;
  font-size: 13px;
}

.orarul {
  line-height: 18px;
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.orarul::before {
  font-family: fontello !important;
  content: "\e888";
  font-size: 12px;
  color: var(--text-muted) !important;
  flex-shrink: 0;
}

.traseu {
  line-height: 18px;
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.traseu::before {
  font-family: fontello !important;
  content: "\e833";
  font-size: 12px;
  color: var(--text-muted) !important;
  flex-shrink: 0;
}


/* ── 18. CONTACT MODAL ───────────────────────────────────── */
#myModal10 .modal-body p {
  text-align: center;
  margin-bottom: 14px;
}

#myModal10 .modal-body a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

#myModal10 .modal-body a:hover {
  color: var(--brand-blue-dark);
}

#myModal10 img[src*="DACIA_HR"] {
  width: 60% !important;
  max-width: 220px;
  margin-top: 0 !important;
}


/* ── 19. LEAFLET ZOOM CONTROLS ───────────────────────────── */
.leaflet-control-zoom {
  border: none !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  color: var(--text-primary) !important;
  background: var(--bg-white) !important;
  border: none !important;
  font-weight: 400 !important;
  transition: background var(--transition);
}

.leaflet-control-zoom a:hover {
  background: var(--bg-light) !important;
}

.leaflet-control-zoom-in {
  border-bottom: 1px solid rgba(0,0,0,0.07) !important;
}


/* ── 20. RESPONSIVE ──────────────────────────────────────── */
@media screen and (max-width: 380px) {
  .search,
  div#mydiv.search {
    width: 88% !important;
  }

  .detalii,
  div.detalii#detalii {
    left: 3% !important;
    width: 94% !important;
    padding: 12px 14px 10px !important;
  }

  #detalii_nav {
    font-size: 14px !important;
    padding: 11px 20px !important;
  }
}

@media screen and (min-width: 600px) {
  .detalii,
  div.detalii#detalii {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 500px;
    width: 90% !important;
  }

  .search,
  div#mydiv.search {
    max-width: 520px;
  }
}


/* ── 21. SCROLLBAR PERSONALIZAT ──────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(21, 116, 245, 0.35);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(21, 116, 245, 0.6);
}


/* ── 22. SWEETALERT2 (tema consistenta) ──────────────────── */
.swal2-popup {
  border-radius: var(--radius-xl) !important;
  font-family: var(--font-main) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 28px !important;
}

.swal2-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.swal2-html-container {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  padding: 10px 28px !important;
  box-shadow: var(--shadow-blue) !important;
  border: none !important;
}

.swal2-cancel {
  border-radius: var(--radius-md) !important;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  padding: 10px 28px !important;
  border: none !important;
}

.swal2-icon {
  border-width: 3px !important;
}


/* ── 23. ANIMATII GENERALE ───────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal.show .modal-dialog {
  animation: scaleIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── END OF FILE ─────────────────────────────────────────── */