/* ── PRIMARY COLOR ── */
:root {
  --bs-primary: #FFAB1D !important;
  --bs-primary-rgb: 255, 171, 29 !important;
}

html, body {
    height: 100%;
}

.authentication-wrapper {
    min-height: 100vh;
}

.authentication-inner {
    min-height: 100vh;
    background-color: #fff !important;
}

.image-container {
    height: 100vh;
}

/* ── FONT PLAY ── */
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

body, .app-brand-text {
  font-family: 'Play', sans-serif !important;
}

.auth-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.auth-logo {
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.authentication-bg {
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    max-width: 80%;
}

.img-hover {
    opacity: 0;
}

/* hover pe formular → schimba imagine */
.authentication-bg:hover ~ .d-none .img-hover,
.authentication-bg:hover ~ .d-xl-flex .img-hover {
  opacity: 1;
}

.authentication-bg:hover ~ .d-none .img-base,
.authentication-bg:hover ~ .d-xl-flex .img-base {
  opacity: 0;
}

/* ── Auth Footer ── */
.auth-footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: #a1a1a1;
}
.auth-footer a {
  color: #666;
  text-decoration: none;
}
.auth-footer a:hover {
  color: #FFAB1D;
}
.auth-footer .separator {
  margin: 0 0.5rem;
}

/* ROLE SELECTOR */
.role-selector {
    display: flex;
    gap: 16px;
}

/* CARD */
.role-card {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

/* ascunde radio */
.role-card input {
    position: absolute;
    opacity: 0;
}

/* ICON */
.role-icon img {
    height: 50px;
    margin-bottom: 10px;
}

/* LABEL */
.role-label {
    display: block;
    font-weight: 600;
}

/* HOVER */
.role-card:hover {
    border-color: #FFAB1D;
}

/* ACTIVE */
.role-card.active {
    border-color: #FFAB1D;
    background: rgba(255, 171, 29, 0.08);
}

/* ── Onboarding overlay ── */

/* Blochează interacțiunea din spate */
body.onboarding-active .layout-wrapper {
    pointer-events: none;
}

.onboarding-overlay {
    pointer-events: auto;
}
body.onboarding-active .layout-overlay,
body.onboarding-active .drag-target {
    display: none !important;
}

/* Overlay FULL */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 20px 12px 60px;

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    height: calc(var(--vh) * 100); /* 🔥 FIX FINAL */
}

.onboarding-box {
    width: 100%;
    max-width: 900px;

    background: #fff;
    border-radius: 16px;

    padding: 20px;

    min-height: fit-content; /* 🔥 important */
}

.onboarding-overlay {
  height: calc(var(--vh) * 100);
}

.onboarding-box {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* BOX CONTENT */
.onboarding-box {
    width: 100%;
    max-width: 900px;

    background: #fff;
    border-radius: 16px;

    padding: 20px;
}

/* Slider nivel */
.level-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.level-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bs-primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.level-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bs-primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    border: none;
}

/* Panou info nivel */
.level-info-panel {
    background: rgba(255, 171, 29, 0.08);
    border: 2px solid var(--bs-primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: .75rem;
    transition: all .25s ease;
}
.level-info-panel .level-icon {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--bs-primary);
    flex-shrink: 0;
}
.level-info-panel .level-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .2rem;
}
.level-info-panel .level-range {
    display: inline-block;
    background: rgba(255,171,29,.18);
    color: #8a6000;
    border-radius: 20px;
    padding: 1px 10px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.level-info-panel .level-desc {
    font-size: .88rem;
    color: #666;
    margin: 0;
}

/* highlight */
mark {
  background: #ffab1d;
  color: #000;
  padding: 0 2px;
  border-radius: 3px;
}
/* =========================
   SEARCH OVERLAY
========================= */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 9999;
}

/* =========================
   MODAL
========================= */

.search-modal {
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  overflow: visible; /* important pentru dropdown */
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* =========================
   HEADER
========================= */

.search-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

/* input */
.search-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

/* icons */
.search-icon {
  color: #999;
}

.search-close {
  cursor: pointer;
  font-size: 20px;
  color: #888;
}

/* =========================
   FILTER
========================= */

.search-filter-wrapper {
  position: relative;
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;
  border-radius: 999px;

  background: #f5f5f5;
  cursor: pointer;
  font-weight: 500;
  color: #444;

  transition: all 0.2s ease;
}

.search-filter:hover {
  background: #ececec;
}

/* dropdown */

.search-filter-dropdown {
  position: absolute;
  top: 120%;
  right: 0;

  width: 170px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);

  padding: 6px;
  z-index: 10000;

  display: none;
}

.search-filter-dropdown.show {
  display: block;
}

.search-filter-dropdown div {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.search-filter-dropdown div:hover {
  background: #f5f5f5;
}

.search-filter-dropdown .active {
  background: #f1f1f1;
  font-weight: 600;
}

/* =========================
   RESULTS
========================= */

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 14px;
}

.search-results .dropdown-item {
  padding: 12px 6px;
  border-bottom: 1px dashed #e0e0e0;
  border-radius: 10px;
}

.search-results .dropdown-item:last-child {
  border-bottom: none;
}

.search-results .dropdown-item:hover {
  background: #f5f5f5;
}
