:root {
  --primary: #5c4d7d;
  --primary-dark: #43355d;
  --primary-light: rgba(236, 231, 244, 0.78);
  --bg: #f2eff8;
  --bg-gradient: radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.13) 0%, transparent 45%),
                 radial-gradient(circle at 88% 30%, rgba(92, 77, 125, 0.12) 0%, transparent 50%),
                 radial-gradient(circle at 50% 92%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
                 linear-gradient(180deg, #f5f3fa 0%, #ece8f4 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-bg-solid: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(92, 77, 125, 0.16);
  --glass-shadow: 0 8px 24px -4px rgba(67, 53, 93, 0.08),
                  0 2px 6px -1px rgba(67, 53, 93, 0.04),
                  inset 0 1px 1px rgba(255, 255, 255, 0.92);
  --input-glass-bg: rgba(255, 255, 255, 0.9);
  --header-glass-bg: rgba(242, 239, 248, 0.78);
  --day-bar-glass: rgba(242, 239, 248, 0.78);
  --text: #2c3e50;
  --text-muted: #6c7a89;
  --border: rgba(196, 188, 214, 0.55);
  --radius: 12px;
  --color-confirmata: #15803d;
  --color-asteptare: #c2410c;
  --color-absenta: #b91c1c;
  --color-empty: #475569;
  --color-hold: #f5b041;
  --placeholder-fade: #94a3b8;
  --accent-purple: #8b5cf6;
  --header-height: 50px;
}

[data-theme="dark"] {
  --primary: #9b84cc;
  --primary-dark: #b8a5e3;
  --primary-light: rgba(58, 46, 84, 0.65);
  --bg: #0f0d16;
  --bg-gradient: radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
                 radial-gradient(circle at 85% 35%, rgba(92, 77, 125, 0.2) 0%, transparent 50%),
                 linear-gradient(180deg, #12101b 0%, #0b0a10 100%);
  --card-bg: rgba(28, 25, 39, 0.86);
  --card-bg-solid: #1c1927;
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-subtle: rgba(155, 132, 204, 0.22);
  --glass-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.45),
                  0 2px 6px -1px rgba(0, 0, 0, 0.3),
                  inset 0 1px 0.5px rgba(255, 255, 255, 0.14);
  --input-glass-bg: rgba(18, 16, 26, 0.82);
  --header-glass-bg: rgba(18, 16, 27, 0.78);
  --day-bar-glass: rgba(18, 16, 27, 0.78);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.11);
  --placeholder-fade: #64748b;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: scroll;
  color: var(--text);
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  min-height: 100dvh;
}

body.no-scroll {
  overflow: hidden !important;
  height: 100dvh !important;
  touch-action: none;
}

/* CÂMPURI PAROLĂ CU OCHIȘOR (SHOW / HIDE PASSWORD) */
.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrap .form-control {
  padding-right: 38px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn:active {
  color: var(--primary);
  background: var(--primary-light);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* HEADER LIQUID GLASS AERISIT & UNIFICAT CROMATIC CU BARA DE ZILE */
header {
  background: var(--header-glass-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: var(--primary);
  padding: 6px 12px;
  height: var(--header-height);
  font-weight: 800;
  font-size: 1.05rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] header {
  color: #e2d9f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  width: 100%;
  color: inherit;
}

.header-title-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  flex-shrink: 0;
  display: block;
}

.header-icon-bubble-btn {
  background: linear-gradient(135deg, #5c4d7d 0%, #7c68a6 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(92, 77, 125, 0.25),
              inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
  pointer-events: auto;
  user-select: none;
}

.header-icon-bubble-btn:active {
  transform: scale(0.92);
  opacity: 0.9;
}

.header-icon-bubble-btn svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  pointer-events: none;
  display: block;
  margin: auto;
}

.header-static-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5c4d7d 0%, #7c68a6 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(92, 77, 125, 0.25),
              inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.header-static-icon svg {
  width: 21px;
  height: 21px;
  stroke: #fff;
  fill: none;
  display: block;
  margin: auto;
}

/* ECRAN AUTENTIFICARE SUPABASE (100% FĂRĂ SCROLL INUTIL) */
.auth-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--bg);
  background-image: var(--bg-gradient);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.auth-overlay.auth-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 375px;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 20px 18px 18px;
  box-shadow: 0 16px 40px rgba(45, 35, 66, 0.2), var(--glass-shadow);
  text-align: center;
  overflow: hidden;
}

/* SELECTOR DISCRET LIMBĂ PE ECRANUL DE LOGIN */
.auth-lang-picker {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.auth-lang-btn {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.16s ease;
}

.auth-lang-btn:active {
  transform: scale(0.94);
}

.auth-lang-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ICONIȚĂ ROTUNDĂ MODERNĂ CU EFECT LIQUID GLASS MOV PE LOGIN SCREEN */
.auth-app-icon-wrap {
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75) 0%, rgba(139, 92, 246, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(92, 77, 125, 0.38),
              0 2px 6px rgba(139, 92, 246, 0.25),
              inset 0 2px 3px rgba(255, 255, 255, 0.9);
}

.auth-app-icon-wrap svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.auth-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.auth-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-tab-btn {
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #5c4d7d 0%, #7c68a6 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(92, 77, 125, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-google-sso {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-google-sso:active {
  transform: scale(0.98);
}

.auth-status-msg {
  margin-top: 8px;
  font-size: 0.76rem;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.auth-status-msg.error {
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.auth-status-msg.success {
  background: rgba(220, 252, 231, 0.9);
  color: #15803d;
  border: 1px solid #86efac;
}

/* MENIU LATERAL FULL-SCREEN (FĂRĂ SCROLL INUTIL) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 24, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.app-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100vw;
  max-width: 480px;
  height: 100dvh;
  background: var(--bg);
  background-image: var(--bg-gradient);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: none;
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.28);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden !important;
  overscroll-behavior: none;
}

.app-drawer.open {
  right: 0;
}

.drawer-view-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  background: inherit;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.drawer-view-layer.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 8px 16px;
  background: var(--header-glass-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
  flex-shrink: 0;
}

[data-theme="dark"] .drawer-header {
  color: #e2d9f3;
}

.drawer-body {
  flex: 1;
  overflow: hidden;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  pointer-events: none;
}

.drawer-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1.5px solid var(--accent-purple);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-avatar-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

/* CARDURI DE NAVIGARE SUB-MENIURI */
.drawer-nav-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.drawer-nav-card:active {
  transform: scale(0.98);
  background: var(--primary-light);
  border-color: var(--accent-purple);
}

.drawer-nav-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-nav-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-nav-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.drawer-nav-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.drawer-nav-arrow {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

/* GESTIUNE AVATAR MARE & SCHIMBARE POZĂ */
.profile-avatar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 0 2px;
}

.profile-avatar-badge-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-big {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(92, 77, 125, 0.22) 0%, rgba(139, 92, 246, 0.18) 100%);
  border: 1.5px solid var(--accent-purple);
  box-shadow: 0 4px 14px rgba(92, 77, 125, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.profile-avatar-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-big svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
}

.profile-avatar-pencil-btn {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(139, 92, 246, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.profile-avatar-pencil-btn svg {
  width: 11px;
  height: 11px;
  stroke: #ffffff;
}

.profile-avatar-pencil-btn:active {
  transform: scale(0.88);
  opacity: 0.9;
}

/* BUTON LOGOUT LIQUID GLASS */
.btn-logout-glass {
  width: 100%;
  padding: 10px;
  font-weight: 800;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-logout-glass:active {
  transform: scale(0.98);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.theme-option-btn, .lang-option-btn {
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text);
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.18s ease;
}

.theme-option-btn.active, .lang-option-btn.active {
  background: linear-gradient(135deg, #5c4d7d 0%, #7c68a6 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 12px rgba(92, 77, 125, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.drawer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.rock-hand {
  font-size: 1rem;
}

.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 4px 8px 6px;
  width: 100%;
}

/* NAVIGARE BOTTOM BAR EXTINSĂ COMPLET PÂNĂ ÎN MARGINEA DE JOS A ECRANULUI (FĂRĂ BARĂ MOV DEDESUBT) */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(245, 243, 250, 0.88);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  z-index: 1000;
  max-width: 650px;
  margin: 0 auto;
  min-height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(67, 53, 93, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] nav {
  background: rgba(18, 16, 27, 0.9);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-mercury-pill {
  position: absolute;
  top: 5px;
  left: 0;
  width: 25%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.34s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.nav-mercury-drop {
  width: 52px;
  height: 34px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 226, 250, 0.9) 55%, rgba(246, 242, 255, 0.98) 100%);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 1),
              inset 0 -1.5px 2.5px rgba(139, 92, 246, 0.25),
              0 4px 12px rgba(92, 77, 125, 0.2),
              0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.32);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .nav-mercury-drop {
  background: linear-gradient(145deg, rgba(92, 77, 125, 0.55) 0%, rgba(58, 46, 84, 0.72) 60%, rgba(139, 92, 246, 0.38) 100%);
  border-color: rgba(196, 181, 253, 0.42);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.35),
              inset 0 -1.5px 2px rgba(139, 92, 246, 0.35),
              0 4px 14px rgba(0, 0, 0, 0.45);
}

.mercury-morph {
  transform: scaleX(1.22) scaleY(0.85);
}

nav button {
  flex: 1;
  padding: 5px 2px 6px;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
}

nav button .nav-icon {
  width: 52px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

nav button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: auto;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav button.active {
  color: var(--primary);
  font-weight: 800;
}

nav button.active svg {
  stroke: var(--primary);
  transform: scale(1.06);
}

/* TRANZIȚII TAB-URI */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* SELECTOR SĂPTĂMÂNĂ COMPACT */
.calendar-expandable-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0 8px;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.24s ease,
              padding 0.24s ease;
}

.calendar-expandable-card.is-expanded {
  max-height: 110px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-bottom: 6px;
  padding: 8px 10px 8px;
  background: var(--card-bg);
  border-color: var(--primary);
  box-shadow: var(--glass-shadow);
}

.calendar-header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0 6px;
}

.calendar-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  text-align: center;
}

.calendar-title-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
  text-align: center;
}

.drawer-nav-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.drawer-nav-btn {
  flex: 1;
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
}

.drawer-nav-btn:active {
  transform: scale(0.97);
  background: var(--primary-light);
}

.drawer-btn-today {
  background: var(--primary-light);
  border: 1px solid var(--glass-border);
  color: var(--primary);
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.drawer-btn-today:active {
  transform: scale(0.97);
  background: var(--primary);
  color: #fff;
}

.badge-sub-info {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 8px;
  border-radius: 8px;
  display: inline-block;
  margin: 0 auto;
}

/* BARA DE ZILE STICKY - UNIFICATĂ LIQUID GLASS CU HEADERUL */
.day-selector {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 8px 8px;
  margin: -4px -8px 6px -8px;
  position: sticky;
  top: var(--header-height);
  z-index: 950;
  background: var(--day-bar-glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 4px 12px -4px rgba(67, 53, 93, 0.06);
}

.day-btn {
  flex: 1;
  min-width: 58px;
  padding: 5px 3px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  box-shadow: 0 2px 6px rgba(67, 53, 93, 0.05),
              inset 0 1px 0.5px rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.day-btn:active {
  transform: scale(0.96);
}

.day-btn .day-date-sub {
  font-size: 0.66rem;
  opacity: 0.82;
  font-weight: 500;
}

.day-btn.active {
  background: linear-gradient(135deg, #5c4d7d 0%, #7762a3 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 12px rgba(92, 77, 125, 0.32),
              inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

/* CARDURI GENERALE & DETAILS */
.card,
details {
  background: var(--card-bg) !important;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
}

.card {
  padding: 12px;
  margin-bottom: 10px;
}

/* CARDURI ORE (OPTIMIZATE GPU FĂRĂ BLUR REPETITIV PENTRU SCROLL 120FPS FLUID) */
.hour-block {
  background: var(--card-bg);
  border: 1.5px solid var(--accent-purple);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px -2px rgba(67, 53, 93, 0.07),
              0 0 0 2px rgba(139, 92, 246, 0.16);
  transform: translateZ(0);
}

[data-theme="dark"] .hour-block {
  border-color: var(--accent-purple);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.4),
              0 0 0 2px rgba(139, 92, 246, 0.24);
}

@keyframes pulseOraCurenta {
  0% { 
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.65);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
  }
  100% { 
    box-shadow: 0 2px 8px -2px rgba(67, 53, 93, 0.07), 0 0 0 2px rgba(139, 92, 246, 0.16);
  }
}

.hour-block-current-highlight {
  animation: pulseOraCurenta 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hour-header {
  background: linear-gradient(90deg, rgba(92, 77, 125, 0.13) 0%, rgba(139, 92, 246, 0.07) 100%);
  padding: 5px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .hour-header {
  background: linear-gradient(90deg, rgba(155, 132, 204, 0.18) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.hour-title-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--primary);
}

[data-theme="dark"] .hour-title-wrap {
  color: #cbb8ee;
  letter-spacing: 0.2px;
}

.btn-lock-hour {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.hour-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
}

.hour-badge-free {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hour-badge-busy {
  background: rgba(220, 252, 231, 0.92);
  color: #166534;
  border: 1px solid rgba(134, 239, 172, 0.65);
}

[data-theme="dark"] .hour-badge-busy {
  background: rgba(220, 252, 231, 0.9);
  color: #166534;
  border: 1px solid rgba(134, 239, 172, 0.6);
}

.hour-badge-blocked {
  background: rgba(254, 226, 226, 0.92);
  color: #b91c1c;
  font-weight: 800;
  border: 1px solid rgba(252, 165, 165, 0.6);
}

[data-theme="dark"] .hour-badge-blocked {
  background: rgba(153, 27, 27, 0.5);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.4);
}

.hour-block-blocked {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--border);
}

.slot-row:last-child {
  border-bottom: none;
}

.slot-occupied {
  background: rgba(34, 197, 94, 0.09) !important;
  border-left: 4px solid #22c55e !important;
}

[data-theme="dark"] .slot-occupied {
  background: rgba(34, 197, 94, 0.13) !important;
}

.slot-free {
  background: transparent;
}

.slot-num {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 14px;
  text-align: center;
}

.slot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slot-input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.82rem;
  background: var(--input-glass-bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.slot-input:focus {
  border-color: var(--accent-purple);
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder-fade) !important;
  opacity: 0.85 !important;
  font-size: 0.8rem !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}

select.form-control,
select.slot-select-type {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2364748b" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 24px !important;
  font-family: inherit;
}

.slot-select-type {
  width: 100%;
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  background-color: var(--input-glass-bg);
  color: var(--text);
  outline: none;
  font-weight: 600;
  transition: border-color 0.15s ease;
}

.slot-select-type:focus {
  border-color: var(--accent-purple);
}

.select-faded {
  color: var(--placeholder-fade) !important;
  font-weight: normal !important;
}

.select-active {
  color: var(--text) !important;
}

.slot-select-type.ant-orange, .slot-input.ant-orange { background-color: rgba(255, 237, 213, 0.92) !important; color: #c2410c !important; border-color: #fdba74 !important; }
.slot-select-type.ant-darkblue, .slot-input.ant-darkblue { background-color: rgba(224, 231, 255, 0.92) !important; color: #3730a3 !important; border-color: #a5b4fc !important; }
.slot-select-type.ant-lightblue, .slot-input.ant-lightblue { background-color: rgba(224, 242, 254, 0.92) !important; color: #0369a1 !important; border-color: #7dd3fc !important; }
.slot-select-type.ant-purple, .slot-input.ant-purple { background-color: rgba(243, 232, 255, 0.92) !important; color: #6b21a8 !important; border-color: #d8b4fe !important; }
.slot-select-type.ant-red, .slot-input.ant-red { background-color: rgba(254, 226, 226, 0.92) !important; color: #b91c1c !important; border-color: #fca5a5 !important; }
.slot-select-type.ant-pink, .slot-input.ant-pink { background-color: rgba(252, 231, 243, 0.92) !important; color: #be185d !important; border-color: #f9a8d4 !important; }
.slot-select-type.ant-lightgreen, .slot-input.ant-lightgreen { background-color: rgba(220, 252, 231, 0.92) !important; color: #15803d !important; border-color: #86efac !important; }
.slot-select-type.ant-yellow, .slot-input.ant-yellow { background-color: rgba(254, 249, 195, 0.92) !important; color: #a16207 !important; border-color: #fde047 !important; }
.slot-select-type.ant-turquoise, .slot-input.ant-turquoise { background-color: rgba(204, 251, 241, 0.92) !important; color: #0f766e !important; border-color: #5eead4 !important; }
.slot-select-type.ant-burgundy, .slot-input.ant-burgundy { background-color: rgba(255, 228, 230, 0.92) !important; color: #881337 !important; border-color: #fda4af !important; }

.btn {
  background: linear-gradient(135deg, #5c4d7d 0%, #7660a3 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 11px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(92, 77, 125, 0.24),
              inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-save-check {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  padding: 4px 7px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25),
              inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
  transition: opacity 0.15s ease;
}

.btn-save-check-disabled {
  background: var(--border) !important;
  color: var(--placeholder-fade) !important;
  border-color: transparent !important;
  opacity: 0.65;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
}

.btn-clear {
  background: var(--input-glass-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-clear-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.btn-archive {
  background: rgba(254, 242, 242, 0.85);
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.input-error {
  border-color: #b91c1c !important;
  outline: 1px solid #b91c1c !important;
}

/* BLOC ADĂUGARE ORĂ SUPLIMENTARĂ */
.extra-hour-card {
  margin: 10px 0 14px;
  padding: 8px 12px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* CARDUL FINALUL PROGRAMULUI */
.end-schedule-card {
  margin: 6px 0 10px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
  min-height: 58px;
  box-sizing: border-box;
  text-align: center;
}

.end-schedule-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.end-schedule-dumbbell-svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  display: block;
}

.end-schedule-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.end-schedule-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.end-schedule-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.end-schedule-card.state-ora-17 {
  padding: 10px 14px;
  min-height: 54px;
}

.end-schedule-card.state-ora-18 {
  padding: 24px 14px;
  min-height: 120px;
  gap: 10px;
  box-shadow: var(--glass-shadow);
}

.end-schedule-card.state-ora-18 .end-schedule-dumbbell-svg {
  width: 50px;
  height: 50px;
  transform: scale(1.05);
}

.end-schedule-card.state-ora-18 .end-schedule-title {
  font-size: 0.96rem;
}

/* EMPTY STATE FIȘĂ CLIENTĂ */
.empty-state-card {
  padding: 30px 16px;
  text-align: center;
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.empty-state-svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* PROGRAMĂRI & HOLD - CENTRARE PERFECTĂ (#, NUME, PREZENȚĂ, MENȚIUNI) */
.prog-table-container {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 11px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 14px;
}

.prog-grid-layout {
  display: grid;
  grid-template-columns: 28px 1.25fr 100px 1.15fr 28px;
  padding: 6px 5px;
  gap: 5px;
  align-items: center;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

.prog-grid-layout-hold {
  display: grid;
  grid-template-columns: 28px 1.25fr 1fr 28px;
  padding: 6px 5px;
  gap: 5px;
  align-items: center;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

.prog-header {
  background: linear-gradient(90deg, rgba(92, 77, 125, 0.14) 0%, rgba(139, 92, 246, 0.08) 100%);
  color: var(--primary-dark);
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.prog-header > div {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.prog-header-hash,
.prog-idx {
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.prog-row {
  border-bottom: 1px solid var(--border);
}

.prog-name {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

#progNouSectiune {
  width: 105px;
  padding: 6px 20px 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--primary);
  text-align: left;
}

.pill-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 14px;
  padding: 4px 14px 4px 6px;
  font-weight: 800;
  font-size: 0.68rem;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  width: 100%;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
  font-family: inherit;
  display: block;
  margin: 0 auto;
}

.pill-confirmata { background-color: var(--color-confirmata) !important; color: #ffffff !important; }
.pill-asteptare { background-color: var(--color-asteptare) !important; color: #ffffff !important; }
.pill-absenta { background-color: var(--color-absenta) !important; color: #ffffff !important; }
.pill-empty { background-color: var(--color-empty) !important; color: #ffffff !important; }

.prog-mentiuni-textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-glass-bg);
  padding: 4px 6px;
  font-size: 0.76rem;
  color: var(--text);
  outline: none;
  border-radius: 6px;
  resize: vertical;
  min-height: 26px;
  font-family: inherit;
  line-height: 1.25;
  word-break: break-word;
  white-space: pre-wrap;
  text-align: center;
  display: block;
  margin: 0 auto;
}

.hold-header {
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.92) 0%, rgba(230, 150, 35, 0.92) 100%);
  color: #1e1b18;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  padding: 7px;
  border-radius: 10px 10px 0 0;
  margin-top: 12px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hold-row {
  background: rgba(245, 176, 65, 0.1) !important;
}

.btn-trash-action {
  background: transparent;
  border: none;
  color: var(--placeholder-fade);
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.incasari-table-fit {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  margin-top: 8px;
  table-layout: fixed;
}

.incasari-table-fit th {
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 3px;
  font-weight: 700;
  text-align: left;
}

.incasari-table-fit td {
  padding: 5px 3px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  word-break: break-word;
  overflow: hidden;
  line-height: 1.2;
}

.total-incasari-card {
  background: var(--input-glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-incasari-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-incasari-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.total-incasari-val {
  font-size: 1.18rem;
  font-weight: 900;
  color: #15803d;
}

[data-theme="dark"] .total-incasari-val {
  color: #4ade80;
}

.progress-wrapper {
  background: var(--border);
  border-radius: 10px;
  height: 14px;
  width: 100%;
  overflow: hidden;
  margin: 6px 0 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.progress-fill {
  background: linear-gradient(90deg, #5c4d7d, #8b5cf6, #27ae60);
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.metric-box {
  background: var(--primary-light);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.metric-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-activ { background: #d4edda; color: #155724; }
.badge-expirat { background: #f8d7da; color: #721c24; }
.badge-arhivat { background: var(--border); color: var(--text); }

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  background: var(--input-glass-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--accent-purple);
}

.loader {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.summary-toggle-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.88rem;
  outline: none;
  user-select: none;
}

.icon-history-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-history-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* TOAST & MODALE LIQUID GLASS */
#customToast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 700;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.28s;
  opacity: 0;
  pointer-events: none;
}

#customToast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#customToast.success { background: rgba(21, 128, 61, 0.94); }
#customToast.error { background: rgba(185, 28, 28, 0.94); }

/* MODAL CONFIRMARE GENERAL */
#customModalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
}

.custom-modal-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.custom-modal-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.custom-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

#modalEditareIncasareBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 24, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-edit-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: left;
}
