/**********************/
/*      VARIABLES     */
/**********************/

:root {
  /*~~~~~~~~~~*/
  /* Default */
  /*~~~~~~~~~*/

  /* Colors */
  --white: #fff;
  --darkBckg: #0E1726;
  --pageBckg: #F7FAFC;
  --pageBackgroundColor: #F7FAFC; /* fundal pagină (era referit dar nedefinit) */

  /* Paleta implicită „albastru rafinat" (suprascrisă la runtime de phpStylesheet.php
     cu paleta organizatorului/evenimentului). */
  --primaryColor: #0E1726;        /* sidebar/navy */
  --primaryLighterColor: #1C2940;
  --primaryDarkerColor: #070C14;

  --secondaryColor: #086EBA;      /* accent ECH */
  --secondaryLighterColor: #2A80DC;
  --secondaryDarkerColor: #064C98;

  --accentColor: #38BDF8;         /* sky (highlight activ) */

  /* ---- Design tokens (Etapa 2) ---- */
  --surface: #ffffff;             /* fundal carduri/panouri */
  --surfaceMuted: #F1F5F9;        /* fundal subtil (thead, hover) */
  --border: #E2E8F0;              /* borduri fine */
  --borderStrong: #CBD5E1;
  --muted: #64748B;               /* text secundar */
  --heading: #0F172A;             /* titluri */

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.10);
  --shadow: 0 6px 20px rgba(15,23,42,.08);
  --shadow-lg: 0 14px 38px rgba(15,23,42,.14);
  --ring: 0 0 0 .2rem rgba(8,110,186,.28);

  --fontStack: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --hoverLinkColor: #e8f3ff; /*chengable*/
  --textColor: #585865;
  --fadeText: #585865b7;
  --bordersColor: #d7d7d7;
  --inputBackgroundColor: #EBF7F7;
  --inputBorderColor: #CAE4E6;
  --buttonPressed: #005961; /*chengable*/
  --alertColor: #dc3545;
  --bckColor: #ebebeb;
  --approved-text: #75bba0;
  --approved-background: #08b108;
  --ratingColorLowest: #8f1d04;
  --ratingColorLow: #f5340e;
  --ratingColorNeutre: #f58d0e;
  --ratingColorGood: rgb(45, 245, 14);
  --ratingColorExcellent: #17980d;
  --canceledText: #deb1b4;
  --scheduled-color: #cefce4;
  --additionalBtnBkgColor: #10985B;
  --additionalBtn: rgb(10, 124, 73);
  --additionalBtnRGB: #0a7c49;
  --additionalBtnBkgHovColor: #60d4a0;
  --transparentColor: rgba(255, 255, 255, 0);

  /* Typography */
  /* MONT */
  
}

:root .card {
  --bs-card-cap-bg: rgba(0, 0, 0, 0);
}


/**********************/
/*      BASE CSS      */
/**********************/

html,
body {
  background-color: var(--pageBackgroundColor) !important;
  margin: 0;
  padding: 0;
}

* {
  color: var(--textColor);
  margin: 0;
  padding: 0;
  font: inherit;
}

a {
  text-decoration: none;
  color: var(--secondaryColor);
}

picture {
  display: block;
}

.no-decoration {
  text-decoration: none;
  color: var(--white);
}

.smaller-text {
  font-size: 0.8em;
}

.small-text {
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.6em;
}

.medium-text {
  font-size: 0.8em;
}

.large-text {
  font-size: 1.5em;
}

.emph-text {
  font-weight: 600;
}

/* Doar butoanele pline primesc text alb; butoanele outline își păstrează culoarea
   (înainte textul alb le făcea invizibile pe fundal alb). */
a.btn:not([class*="btn-outline"]) {
  color: var(--white)!important;
}

.delete-item .bi {
  color: var(--alertColor)!important;
}

.mybtn{
  display: inline-block!important;
  background-color: var(--secondaryColor)!important;
  color: var(--white)!important;
  
}
.mybtn:hover{ 
  background-color: var(--secondaryLighterColor)!important; 
  color: var(--white)!important;
}
.mybtn:active{
  background-color: var(--secondaryDarkerColor)!important; 
  color: var(--white)!important;
}
.link-to-website {
  color: white;
  text-align: center;
}
.currency-add::after {
  content: " €";
}

.currency-small::after {
  font-size: 0.4em;
}


/*~~~~~~~~*/
/* LogIn */
/*~~~~~~~*/

.login-page {
  background-color: var(--primaryColor);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
}

.login-page h3, 
.login-page h1 span {
  color: var(--white);
}

.login-page img {
  width: 150px;
  height: 150px;
}

.login-page form {
  display: flex;
  flex-direction: column;
}

/*~~~~~~~~~*/
/* Header */
/*~~~~~~~~*/

nav .navbar-toggler {
  background-color: white;
}

.principal-nav {
  background-color: var(--primaryColor);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.principal-nav * {
  color: white !important;
}

.principal-nav * span {
  color: white !important;
}

.top-banner {
  height: 4rem;
  width: 100%;
  background-color: var(--primaryColor);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.top-banner .business-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
  
.top-banner .business-logo picture {
  height: 4rem;
  width: 4rem;
}

.top-banner .business-logo img {
  height: 100%;
  width: 100%;
}

.top-banner .business-logo .business-name {
  color: var(--white);
  font-size: 0.9em;
  font-weight: 600;
}

.top-banner .business-logo .business-undertext {
  color: var(--white);
  font-size: 0.7em;
}

.top-banner .user-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.top-banner .user-picture picture {
  height: 3rem;
  width: 3rem;
}

.top-banner .user-picture img {
  height: 100%;
  width: 100%;
}

.top-banner .user-data {
  text-align: start;
}

.top-banner .name,
.top-banner .user-role,
.top-banner .event,
.top-banner .category {
  color: var(--white);
  font-size: 0.8em;
}
  
aside {
  position: fixed;
  top: 4rem;
  left: 0;
  bottom: 0;
  width: 15rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  background-color: var(--primaryColor);
}

aside a {
  color: var(--white);
}

aside .links-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

aside .menu-links a {
  display: flex;
  width: calc(100% - 1rem);
  height: 3rem;
  background-color: var(--primaryColor);
  margin-left: 1rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  line-height: 40px;
  border-radius: 50px 0 0 50px;
}

aside .menu-links a i, 
aside .menu-links a span {
  color: var(--white);
}

aside .menu-links a i {
  font-size: 1.5em;
}

aside .menu-links a span {
  font-size: 1.2em;
}

aside .menu-links a:hover i,
aside .menu-links a:hover span {
  color: var(--secondaryColor);
}

aside .menu-links a.active {
  background-color: var(--white);
  position: relative;
}

aside .menu-links a.active i, 
aside .menu-links a.active span {
  color: var(--secondaryColor);
}

aside .menu-links a.active::before,
aside .menu-links a:hover::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 5px 5px 0 5px var(--white);
  background: transparent;
}

aside .menu-links a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  border-top-right-radius: 20px;
  box-shadow: 5px -5px 0px 5px var(--white);
  background-color: transparent;
}

.body {
  width: 100%;
  margin: 4rem 0 5rem 0;
  padding: 0 0.5rem;
}

.body a {
  display: flex;
  color: var(--secondaryColor);
  gap: 1rem;
}

/* Anchor-butoanele nu trebuie întinse ca link-urile flex full-width. */
.body a.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: auto;
}

.body a .bi {
  color: var(--secondaryColor);
}

.body .success-add {
  width: 100%;
  background: var(--secondaryColor);
  color: white;
  font-weight: 600;
  padding: 1rem;
  position: fixed;
  top: 4rem;
  left: 0; 
  z-index: 200;
  text-align: center;
  border-radius: 0 0 50px 50px;
}

.body .error-text {
  color: var(--alertColor);
  font-size: 0.9em;
}

.body > div {
  position: relative;
}

.body .go-back-arrow {
  position: fixed;
  margin: 0;
  top: 4rem;
  left: 0;
  background-color: var(--white);
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
}

.body .go-back-arrow i {
  font-size: 2em;
}

.body nav {
  position: sticky;
}

.body nav a {
  justify-content: center;
  align-items: center;
}

.body nav .bi {
  font-size: 2em;
}

.body nav .link-box {
  position: relative;
  margin: 20px;
  height: 150px;
  width: 150px;
  max-width: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--secondaryLighterColor);
  border-radius: 20px;
}

.body nav .link-box::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  top: -10px;
  left: -10px;
  border-radius: inherit;
  background: var(--secondaryLighterColor);
  transition: all 1s ease;
}

.body nav .link-box:hover,
.body nav .link-box:active,
.body nav .link-box:focus {
  background-color: var(--secondaryColor);
}

.body nav .link-box:hover i, 
.body nav .link-box:hover span,
.body nav .link-box:active i, 
.body nav .link-box:active span,
.body nav .link-box:focus i, 
.body nav .link-box:focus span {
  color: var(--white);
}

.body nav .link-box:hover::before,
.body nav .link-box:active::before,
.body nav .link-box:focus::before {
  width: 100%;
  height: 100%;
  top: 5px;
  left: 5px;
  background-color: var(--secondaryDarkerColor);
}

.body nav .link-box span {
  color: var(--secondaryColor);
}
  
.body .ads-slideshow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.body .ads-slideshow img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
}

.body .ads-slideshow img:first-child {
  visibility: visible; /* Show the first image initially */
  opacity: 1; /* Make the first image visible */
}

.body .ads-slide-aside {
  position: relative;
  width: 15rem;
  height: 6rem;
  overflow: hidden;
}

.body .ads-slide-aside img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.body .ads-slide-aside img.active {
  opacity: 1;
}

.event-sponsor-banner {
  position: relative;
  width: 100%;
  min-height: 8rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f5f7;
}

.event-sponsor-banner__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.event-sponsor-banner__item.active {
  opacity: 1;
}

.event-sponsor-banner__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-sponsor-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.event-sponsor-strip__card {
  background: #fff;
  border: 1px solid var(--secondaryLighterColor);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.event-sponsor-strip__card img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.body .long-table {
  overflow-x: auto;
}

.body .long-table table {
  width:auto;
}

/* MyEvents */

.body .events-nav {
  position: sticky;
  background: white;
  z-index: 200;
  top: 4rem;
}

/* ── Event Overview Card Grid ── */
.ov-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 576px) {
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .ov-grid { grid-template-columns: repeat(3, 1fr); }
}

.ov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
}
.ov-card:hover { box-shadow: var(--shadow); border-color: var(--borderStrong); }

.ov-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1rem;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  border: none;
  width: 100%;
  text-align: left;
}
.ov-card__header:hover { background: var(--surfaceMuted); }

.ov-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-sm);
  background: var(--surfaceMuted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--secondaryColor);
  flex-shrink: 0;
}

.ov-card__title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--heading);
  flex: 1;
}

.ov-card__badge {
  background: var(--secondaryColor);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .55rem;
  min-width: 1.5rem;
  text-align: center;
}

.ov-card__chevron {
  color: var(--muted);
  font-size: .75rem;
  transition: transform .2s;
}
.ov-card.is-open .ov-card__chevron { transform: rotate(180deg); }

.ov-card__body {
  display: none;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surfaceMuted);
}
.ov-card.is-open .ov-card__body { display: block; }

.body .item-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--secondaryLighterColor);
  border-radius: 5px;
}

.body .accordion {
  padding-right: 0.5rem;
}

.body .accordion-event-box {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--secondaryLighterColor);
}  

.body .input-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------------- */
/*    SEARCH PAGE   */
/* ---------------- */

.body .grids {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, 300px);
  grid-auto-rows: 200px;
  position: relative;
}

.body .grids p {
  opacity: 0.8;
  max-width: 55ch;
  margin: 0;
}
  
.body .grids h2 {
  font-weight: 600;
  font-size: 1.4em;
}

.body .cards {
  position: relative;
  background: var(--white);
  padding: 1rem;
  box-shadow: 1px 1px 4px -1px var(--textColor);
}

.body .cards > div > i {
  font-size: 55px;
}

.body .cards:hover,
.body .cards:active,
.body .cards:focus {
  background-attachment: fixed;
  background-image: radial-gradient(
    circle at var(--x, 0) var(--y, 0),
    #1091987a,
    #1091981e 8rem
  );
  cursor: pointer;
}

.body .cards:focus-visible {
  outline: var(--primaryColor) solid 2px;
}

.body .cards::after {
  content: "";
  position: absolute;
  inset: -2px;
  background-attachment: fixed;
  background-image: radial-gradient(
    circle at var(--x, 0) var(--y, 0),
    #109198,
    transparent 5rem
  );
  pointer-events: none;
  z-index: -1;
}

.body .grid-containers {
  margin-block-start: 3rem;
  display: grid;
  grid-template-areas: "a";
}

.body .grid-containers > * {
  grid-area: a;
}

/* Judging */
.body .jury-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.body .judge-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Settings */
.body .user-settings {
  margin-top: 4rem;
}

.body picture {
  width: 5rem;
  height: 5rem;
}

.body img {
  width: 100%;
  height: 100%;
}

.body .user-data .--container {
  display: flex;
  flex-direction: column;
}

.body .user-data .--title {
  font-size: 1.2em;
  font-weight: 600;
}
  
.body .primary-color {
  width: 50px;
  height: 25px;
  background-color: var(--primaryColor);
}
.body .secondary-color {
  width: 50px;
  height: 25px;
  background-color: var(--secondaryColor);
}


/*~~~~~~~~~~~~~~*/
/* Subscrption */
/*~~~~~~~~~~~~*/

.card-header h2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-name {
  font-size: 0.7em;
  color: var(--fadeText);
}

.prices .range-area {
  position: inherit;
}

.prices .slider {
  position: inherit;
  top: 0;
  left: 0;
  transform: none;
  height: auto;
  padding: 0;
}

.prices .slider label {
  width: 80px;
}

.prices .slider::after {
  content: "";
}

.prices .bi-check-circle {
  color: var(--approved-background) !important;
}

.prices .bi-x-circle {
  color: var(--alertColor) !important;
}

.slider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  height: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  /* box-shadow: 0px 15px 40px #7E6D5766; */
}
.slider label {
  width: 60px;
  padding-left: 5px;
}

.slider label span {
  font-size: var(--fs-text);
  font-weight: 600;
  color: var(--primaryColor);
}

.slider span::after {
  content: ' km';
}

.slider input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 5px;
  background: var(--primaryColor);
  border: none;
  outline: none;
}
.slider input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none !important;
   appearance: none !important;
  width: 25px;
  height: 25px;
  background: var(--primaryColor);
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--secondaryColor);
} 
.slider input[type="range"]:hover {
  background: var(--secondaryColor);
}

.prices .small-text {
  text-align: start;
  font-size: 0.8em;
  padding: 0;
}

.prices .small-price {
  padding-left: calc(var(--bs-gutter-x)* .5);
}

.plan-price {
  font-size: 0.9em;
  font-weight: 600;
  margin: 0;
}

.brand-logo {
  height: 2rem;
  width: 2rem;
}

/* Bara de navigație mobilă (înlocuiește vechiul footer cu iconițe nestilizate
   peste care se suprapunea textul de copyright). */
.ech-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: var(--primaryColor);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.ech-mobile-nav__items {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.ech-mobile-nav__items a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.45rem 0 0.35rem;
  color: rgba(255, 255, 255, 0.78);
}

.ech-mobile-nav__items a i {
  font-size: 1.3rem;
  color: inherit;
}

.ech-mobile-nav__items a span {
  font-size: 0.66rem;
  color: inherit;
  line-height: 1;
}

.ech-mobile-nav__items a.active,
.ech-mobile-nav__items a:active {
  color: var(--accentColor);
}

/* Copyright — linie proprie în interiorul barei fixe (nu suprapus, nu în flux). */
.ech-mobile-nav__credit {
  display: block;
  text-align: center;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.45) !important;
  padding: 0 0.5rem 0.35rem;
}

.home-footer {
  position: relative;
}


@media (max-width: 900px) {
  .body .ads-slideshow {
      position: fixed;
      bottom: 3rem;
      height: 150px;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
      background: black;
      padding: 10px;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  }
  aside {
    display: none;
  }
}

@media (min-width: 350px) {
  .body .business-name {
    font-size: 1.2em;
  }

  .body .business-undertext {
    font-size: 0.8em;
  }
}

@media (min-width: 900px) {
  .body {
    margin-left: 15.5rem;
    margin-bottom: 0;
  }

  .body .go-back-arrow {
    left: 15rem;
  }

  .ech-mobile-nav {
    display: none;
  }

  .home-footer {
    display: flex;
  }

  .brand-logo {
    height: 4rem;
    width: 4rem;
    margin-right: 1rem;
  }
}

/****************************************/
/*   COMPONENTE MODERNE (Etapa 2)       */
/****************************************/

html, body {
  font-family: var(--fontStack);
  color: var(--textColor);
  background-color: var(--pageBackgroundColor) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---- Butoane ---- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); outline: none; }

.btn-primary,
.mybtn {
  background-color: var(--secondaryColor) !important;
  border-color: var(--secondaryColor) !important;
  color: #fff !important;
}
.btn-primary:hover,
.mybtn:hover {
  background-color: var(--secondaryDarkerColor) !important;
  border-color: var(--secondaryDarkerColor) !important;
}

.btn-outline-primary,
.btn-outline-secondary {
  border-color: var(--border);
  color: var(--secondaryColor);
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background-color: var(--secondaryColor);
  border-color: var(--secondaryColor);
  color: #fff !important;
}

/* ---- Carduri ---- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: box-shadow .18s ease, transform .18s ease;
}
.ech-docs-panel .card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .card-body { padding: 1.1rem 1.25rem; }

/* ---- Inputuri ---- */
.form-control,
.form-select,
.body input[type="text"]:not(.flatpickr-input),
.body input[type="email"],
.body input[type="password"],
.body input[type="tel"],
.body input[type="number"],
.body input[type="search"],
.body textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus,
.form-select:focus,
.body input:focus,
.body textarea:focus {
  border-color: var(--secondaryColor);
  box-shadow: var(--ring);
  outline: none;
}
.form-label { font-weight: 500; color: var(--heading); margin-bottom: .3rem; }

/* ---- Accordion (overview eveniment) ---- */
.accordion {
  --bs-accordion-border-color: var(--border);
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-active-bg: rgba(8,110,186,.07);
  --bs-accordion-active-color: var(--secondaryColor);
  --bs-accordion-btn-focus-box-shadow: var(--ring);
}
.accordion-item {
  border: 1px solid var(--border);
  margin-bottom: .6rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  color: var(--heading);
}
.accordion-button:not(.collapsed) {
  color: var(--secondaryColor);
  background-color: rgba(8,110,186,.07);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: var(--ring); }

/* ---- Tabele ---- */
.table {
  --bs-table-hover-bg: var(--surfaceMuted);
  border-color: var(--border);
}
.table thead th {
  background-color: var(--surfaceMuted);
  color: var(--heading);
  font-weight: 600;
  border-bottom: 1px solid var(--borderStrong);
}
.table td, .table th { vertical-align: middle; }

/* ---- Badge-uri ---- */
.badge { font-weight: 600; letter-spacing: .01em; }

/* ---- Modal ---- */
.modal-content { border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--border); }

/* ---- Login modernizat ---- */
.login-page {
  background: linear-gradient(160deg, var(--primaryColor) 0%, var(--secondaryDarkerColor) 100%);
}
.login-page form {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  gap: .85rem;
  width: 100%;
  max-width: 420px;
}
.login-page form * { color: var(--textColor); }
.login-page img { border-radius: 16px; object-fit: contain; }
/* Link-uri în afara cardului (ex. „Forgot password") — lizibile pe fundalul închis. */
.login-page a:not(.btn) { color: rgba(255,255,255,.85); }
.login-page a:not(.btn):hover { color: #fff; }

/* ---- Tile-uri dashboard: umbră mai fină ---- */
.body nav .link-box {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.body nav .link-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---- Sidebar: tipografie ---- */
aside .menu-links a span { font-weight: 500; }
