/* ==========================================================
   M&M Security Team - tema "futurista"
   Doar aspect: structura, datele si functiile raman neschimbate.
   ========================================================== */
:root {
  --mm-blue: #2b2f8f;
  --mm-blue-dark: #1c1f66;
  --mm-accent: #4f6bff;
  --mm-cyan: #22d3ee;
  --mm-violet: #8b5cf6;
  --mm-grad: linear-gradient(135deg, #4f6bff 0%, #8b5cf6 100%);
  --mm-grad-soft: linear-gradient(135deg, rgba(79,107,255,.12), rgba(139,92,246,.12));
  --mm-radius: 18px;
  --mm-radius-sm: 12px;
  --mm-shadow: 0 8px 30px rgba(43,47,143,.10);
  --mm-shadow-hover: 0 14px 40px rgba(79,107,255,.22);
  --mm-bg: #f1f3fb;
  --mm-surface: rgba(255,255,255,.82);
  --mm-ease: cubic-bezier(.22,.8,.3,1);
}

[data-bs-theme="dark"] {
  --mm-bg: #0b0e1f;
  --mm-surface: rgba(24,28,58,.78);
  --mm-shadow: 0 8px 30px rgba(0,0,0,.45);
  --mm-shadow-hover: 0 14px 40px rgba(79,107,255,.35);
  --mm-grad-soft: linear-gradient(135deg, rgba(79,107,255,.22), rgba(139,92,246,.22));
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(79,107,255,.16), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34,211,238,.12), transparent 60%),
    var(--mm-bg);
  background-attachment: fixed;
  padding-bottom: 3rem;
  min-height: 100vh;
  transition: background-color .3s;
}

/* ---------- Bara de navigare (sticla + gradient) ---------- */
.navbar-mm {
  background: linear-gradient(120deg, rgba(20,23,80,.96), rgba(43,47,143,.94) 55%, rgba(91,60,200,.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(28,31,102,.35);
  border-radius: 0 0 26px 26px;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: .55rem 0;
}
.navbar-mm .navbar-brand { color: #fff !important; font-weight: 700; letter-spacing: .02em; }
.navbar-mm .nav-link {
  color: rgba(255,255,255,.88) !important;
  border-radius: 999px;
  padding: .45rem .9rem !important;
  margin: 2px 2px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .25s var(--mm-ease), transform .25s var(--mm-ease), box-shadow .25s;
}
.navbar-mm .nav-link:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.navbar-mm .nav-link.active {
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 18px rgba(34,211,238,.35);
}
.navbar-mm .navbar-toggler { border-radius: 14px; border-color: rgba(255,255,255,.4); }
.navbar-mm .navbar-toggler-icon { filter: invert(1); }

.mm-logo {
  height: 34px;
  margin-right: 8px;
  border-radius: 10px;
  background: #fff;
  padding: 2px 4px;
}

/* Iconite rotunde in meniu */
.mm-ico {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  flex: 0 0 26px;
  transition: background .25s, transform .35s var(--mm-ease);
}
.mm-ico svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.navbar-mm .nav-link:hover .mm-ico { background: var(--mm-cyan); transform: rotate(-8deg) scale(1.1); }
.navbar-mm .nav-link:hover .mm-ico svg { stroke: #0b0e1f; }
.navbar-mm .nav-link.active .mm-ico { background: var(--mm-cyan); }
.navbar-mm .nav-link.active .mm-ico svg { stroke: #0b0e1f; }

.mm-theme-toggle {
  border: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .4s var(--mm-ease), background .25s;
}
.mm-theme-toggle:hover { background: rgba(255,255,255,.3); transform: rotate(25deg) scale(1.08); }
.mm-theme-toggle svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Carduri ---------- */
.card {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--mm-radius);
  background: var(--mm-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--mm-shadow);
  margin-bottom: 1rem;
  transition: transform .3s var(--mm-ease), box-shadow .3s var(--mm-ease);
}
[data-bs-theme="dark"] .card { border-color: rgba(255,255,255,.08); }
a.card:hover, .card.mm-hover:hover, .stat-card:hover, .job-card-available:hover {
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-hover);
}
.card-header {
  background: var(--mm-grad-soft);
  border-bottom: 0;
  border-radius: var(--mm-radius) var(--mm-radius) 0 0 !important;
  font-weight: 600;
}

.stat-card { text-align: center; padding: 1rem; position: relative; overflow: hidden; }
.stat-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--mm-grad);
}
.stat-card .stat-value {
  font-size: 2.1rem; font-weight: 800;
  background: var(--mm-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--mm-blue);
}
.stat-card .stat-label { color: #6b7080; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
[data-bs-theme="dark"] .stat-card .stat-label { color: #a4abc8; }

.table-responsive-cards .card { margin-bottom: .75rem; }

/* ---------- Butoane rotunjite ---------- */
.btn {
  border-radius: 999px;
  padding-left: 1.1rem; padding-right: 1.1rem;
  font-weight: 500;
  transition: transform .2s var(--mm-ease), box-shadow .25s, filter .2s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { padding-left: .8rem; padding-right: .8rem; }
.btn-primary {
  background: var(--mm-grad); border: 0;
  box-shadow: 0 6px 18px rgba(79,107,255,.35);
}
.btn-primary:hover, .btn-primary:focus { background: var(--mm-grad); filter: brightness(1.1); box-shadow: 0 10px 26px rgba(79,107,255,.5); }
.btn-success { border: 0; background: linear-gradient(135deg,#10b981,#22d3ee); box-shadow: 0 6px 18px rgba(16,185,129,.3); }
.btn-success:hover { filter: brightness(1.08); }
.btn-danger { border: 0; background: linear-gradient(135deg,#ef4444,#f97316); box-shadow: 0 6px 18px rgba(239,68,68,.3); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-outline-primary { border-color: var(--mm-accent); color: var(--mm-accent); }
.btn-outline-primary:hover { background: var(--mm-grad); border-color: transparent; }
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
  transform: scale(0); animation: mm-ripple .6s linear; pointer-events: none;
}
@keyframes mm-ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Formulare ---------- */
.form-control, .form-select {
  border-radius: var(--mm-radius-sm);
  border: 1.5px solid rgba(79,107,255,.18);
  padding: .55rem .85rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mm-accent);
  box-shadow: 0 0 0 .25rem rgba(79,107,255,.18), 0 0 18px rgba(34,211,238,.18);
}
.input-group > .form-control, .input-group > .form-select { border-radius: var(--mm-radius-sm); }
.form-check-input { cursor: pointer; }
.form-check-input:checked { background-color: var(--mm-accent); border-color: var(--mm-accent); }
.form-check-label { cursor: pointer; }
.form-label { font-weight: 500; }

/* ---------- Tabele ---------- */
.table { --bs-table-bg: transparent; }
.table thead th {
  border-bottom: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--mm-blue);
}
[data-bs-theme="dark"] .table thead th { color: #aab4ff; }
.table tbody tr { transition: background .2s, transform .2s; }
.table-hover > tbody > tr:hover > * { background: rgba(79,107,255,.07); }

/* ---------- Badge-uri / alerte ---------- */
.badge { border-radius: 999px; padding: .42em .8em; font-weight: 600; letter-spacing: .02em; }
.badge-status { font-size: .8rem; }
.alert { border: 0; border-radius: var(--mm-radius-sm); box-shadow: var(--mm-shadow); }
.btn-close { border-radius: 50%; }
.modal-content { border-radius: var(--mm-radius); border: 0; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dropdown-menu { border-radius: var(--mm-radius-sm); border: 0; box-shadow: var(--mm-shadow); }
.pagination .page-link { border-radius: 50% !important; margin: 0 2px; border: 0; }
.nav-tabs .nav-link, .nav-pills .nav-link { border-radius: 999px; }
.list-group-item:first-child { border-top-left-radius: var(--mm-radius-sm); border-top-right-radius: var(--mm-radius-sm); }
.list-group-item:last-child { border-bottom-left-radius: var(--mm-radius-sm); border-bottom-right-radius: var(--mm-radius-sm); }
img.img-thumbnail { border-radius: var(--mm-radius-sm); }

/* ---------- Checklist ---------- */
.checklist-categorie { margin-bottom: 1.25rem; }
.checklist-categorie h6 {
  background: var(--mm-grad-soft);
  padding: .6rem 1rem;
  border-radius: 999px;
  color: var(--mm-blue-dark);
  font-weight: 600;
}
[data-bs-theme="dark"] .checklist-categorie h6 { color: #cfd5ff; }
.row-remove-btn { cursor: pointer; }

/* ---------- Planificator ---------- */
.job-card-available { border-left: 5px solid #10b981; }
.job-card-urgent {
  border-left: 5px solid #ef4444;
  background: linear-gradient(90deg, rgba(239,68,68,.08), var(--mm-surface) 40%);
  animation: mm-pulse 2.6s ease-in-out infinite;
}
@keyframes mm-pulse {
  0%,100% { box-shadow: var(--mm-shadow); }
  50% { box-shadow: 0 0 0 4px rgba(239,68,68,.12), var(--mm-shadow); }
}

/* ---------- Animatie de intrare ---------- */
.mm-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--mm-ease), transform .55s var(--mm-ease); }
.mm-reveal.mm-in { opacity: 1; transform: none; }

footer.mm-footer { text-align: center; color: #8a90aa; font-size: .8rem; margin-top: 2rem; }

@media (max-width: 767.98px) {
  .hide-mobile { display: none !important; }
  h1, h2 { font-size: 1.4rem; }
  .navbar-mm { border-radius: 0 0 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mm-reveal { opacity: 1; transform: none; }
}

/* ---------- Corectii: meniu compact + mod intunecat ---------- */
.navbar-mm .navbar-nav { flex-wrap: wrap; }
.navbar-mm .nav-link { white-space: nowrap; font-size: .9rem; padding: .4rem .6rem !important; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  /* pe ecrane medii: doar iconita, textul apare la hover/focus */
  .navbar-mm .nav-link > span:not(.mm-ico) { display: none; }
  .navbar-mm .nav-link:hover > span:not(.mm-ico),
  .navbar-mm .nav-link.active > span:not(.mm-ico),
  .navbar-mm .nav-link:focus > span:not(.mm-ico) { display: inline; }
  .navbar-mm .navbar-brand span { display: none !important; }
}
.table.bg-white { background-color: var(--mm-surface) !important; border-radius: var(--mm-radius-sm); overflow: hidden; }
.table > :not(caption) > * > * { background-color: transparent; color: inherit; }
[data-bs-theme="dark"] .table-warning { --bs-table-bg: rgba(245,158,11,.18); --bs-table-color: #fde7b0; color: #fde7b0; }
[data-bs-theme="dark"] .table-danger  { --bs-table-bg: rgba(239,68,68,.2);  --bs-table-color: #fecaca; color: #fecaca; }
[data-bs-theme="dark"] .table-success { --bs-table-bg: rgba(16,185,129,.18); --bs-table-color: #bbf7d0; color: #bbf7d0; }
[data-bs-theme="dark"] .table-warning > *, [data-bs-theme="dark"] .table-danger > *, [data-bs-theme="dark"] .table-success > * { background-color: transparent !important; }
[data-bs-theme="dark"] .table > :not(caption) > * > * { border-bottom-color: rgba(255,255,255,.08); }
[data-bs-theme="dark"] .bg-white, [data-bs-theme="dark"] .bg-light { background-color: var(--mm-surface) !important; color: inherit; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: rgba(255,255,255,.06); border-color: rgba(139,160,255,.3); }
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5 { color: #e6e9ff; }
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand) { color: #8fa2ff; }
[data-bs-theme="dark"] .job-card-urgent { background: linear-gradient(90deg, rgba(239,68,68,.18), var(--mm-surface) 45%); }
h1, h2 { background: none; }

/* ==========================================================
   Layout cu meniu lateral (design nou)
   Logo-ul firmei este afisat NEMODIFICAT: aceeasi imagine, proportii
   pastrate (fara decupare/colorare/deformare), pe un suport alb.
   ========================================================== */
:root { --mm-side-w: 262px; --mm-side-bg: linear-gradient(180deg,#14175a 0%,#2b2f8f 62%,#4b34b8 100%); }
.mm-shell { display: grid; grid-template-columns: var(--mm-side-w) 1fr; min-height: 100vh; }
.mm-side {
  background: var(--mm-side-bg); color: #fff;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-radius: 0 28px 28px 0; padding: 18px 14px;
  display: flex; flex-direction: column;
  box-shadow: 12px 0 40px rgba(28,31,102,.25);
  z-index: 1040;
}
.mm-side::-webkit-scrollbar { width: 0; }
.mm-brand { display: block; text-decoration: none; color: #fff; text-align: center; padding: 2px 4px 14px; }
.mm-logo-plate {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 18px; padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.mm-logo-plate img { display: block; height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.mm-brand small { display: block; margin-top: 10px; font-size: 10.5px; letter-spacing: .16em; opacity: .75; }
.mm-grp { font-size: 10.5px; letter-spacing: .14em; opacity: .55; margin: 16px 10px 6px; text-transform: uppercase; }
.mm-nav-wrap { flex: 1; }
.mm-nav {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 2px 0;
  border-radius: 16px; color: rgba(255,255,255,.9); text-decoration: none; font-size: 14px;
  transition: background .25s var(--mm-ease), transform .25s var(--mm-ease), box-shadow .25s;
}
.mm-nav .mm-ico { width: 32px; height: 32px; flex-basis: 32px; }
.mm-nav .mm-ico svg { width: 16px; height: 16px; }
.mm-nav:hover { background: rgba(255,255,255,.12); transform: translateX(3px); color: #fff; }
.mm-nav:hover .mm-ico { background: var(--mm-cyan); transform: rotate(-8deg) scale(1.08); }
.mm-nav:hover .mm-ico svg, .mm-nav.active .mm-ico svg { stroke: #0b0e1f; }
.mm-nav.active { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 22px rgba(34,211,238,.3); font-weight: 600; color: #fff; }
.mm-nav.active .mm-ico { background: var(--mm-cyan); }
.mm-side-foot { margin-top: 12px; }
.mm-me { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 20px; padding: 8px; }
.mm-me-link { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; flex: 1; }
.mm-me-link:hover { color: #fff; }
.mm-av { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--mm-grad); display: grid; place-items: center; font-weight: 700; border: 2px solid rgba(255,255,255,.5); }
.mm-me-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mm-me-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-me-t small { opacity: .7; font-size: 11px; }
.mm-me .mm-theme-toggle { width: 32px; height: 32px; text-decoration: none; }
.mm-me .mm-theme-toggle svg { width: 15px; height: 15px; }

.mm-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.mm-content { padding: 26px 34px 20px; width: 100%; max-width: 1280px; flex: 1; }
.mm-main .mm-footer { margin-top: auto; padding: 12px; }
.mm-pagehead { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.mm-pagehead h2 { font-weight: 700; letter-spacing: -.01em; }

/* bara de sus pe telefon */
.mm-topbar {
  position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--mm-side-bg); box-shadow: 0 8px 24px rgba(28,31,102,.3);
  border-radius: 0 0 22px 22px;
}
.mm-logo-top { height: 38px; width: auto; background: #fff; border-radius: 12px; padding: 3px 8px; }
.mm-burger { border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.mm-burger svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.mm-backdrop { display: none; position: fixed; inset: 0; background: rgba(8,10,40,.55); z-index: 1035; backdrop-filter: blur(3px); }
.mm-backdrop.on { display: block; }

@media (max-width: 991.98px) {
  .mm-shell { display: block; }
  .mm-side { position: fixed; left: 0; top: 0; width: 285px; max-width: 86vw; transform: translateX(-105%); transition: transform .35s var(--mm-ease); }
  .mm-side.open { transform: none; }
  .mm-content { padding: 16px 14px 10px; }
}

/* ---------- KPI, grafice, alerte ---------- */
.kpi { display: flex !important; flex-direction: row; align-items: center; gap: 14px; text-align: left !important; }
.kpi::before { display: none; }
.kpi-ico { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(79,107,255,.3); }
.kpi-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi .stat-value { font-size: 1.9rem; line-height: 1; }
.kpi .stat-label { margin-top: 4px; }
.mm-chart text { font-family: inherit; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.att { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid rgba(120,130,180,.2); text-decoration: none; color: inherit; border-radius: 12px; transition: background .2s, transform .2s; }
.att:first-of-type { border-top: 0; }
.att:hover { background: rgba(79,107,255,.07); transform: translateX(3px); color: inherit; }
.att-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; }
.att-ico svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.att b { display: block; font-size: .92rem; }
.att small { color: #7a809e; }
.mm-bar { height: 9px; border-radius: 9px; background: rgba(120,130,180,.2); margin-top: 4px; }
.mm-bar div { height: 100%; border-radius: 9px; background: var(--mm-grad); }

/* ---------- Pagina de login ---------- */
.mm-guest-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px; }
.mm-login { display: grid; grid-template-columns: 1.1fr 1fr; width: min(980px, 100%); border-radius: 32px; overflow: hidden; box-shadow: 0 30px 80px rgba(28,31,102,.35); }
.mm-login-l { background: var(--mm-side-bg); color: #fff; padding: 44px; position: relative; overflow: hidden; }
.mm-login-l::before, .mm-login-l::after { content: ""; position: absolute; border-radius: 50%; background: rgba(34,211,238,.18); }
.mm-login-l::before { width: 300px; height: 300px; right: -90px; bottom: -90px; }
.mm-login-l::after { width: 160px; height: 160px; left: -50px; top: 42%; background: rgba(139,92,246,.35); }
.mm-login-l > * { position: relative; z-index: 1; }
.mm-login-l h2 { font-size: 1.9rem; line-height: 1.15; margin: 30px 0 12px; font-weight: 800; color: #fff; }
.mm-login-l p { opacity: .85; line-height: 1.55; }
.mm-feat { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.mm-feat span { background: rgba(255,255,255,.15); border-radius: 999px; padding: 7px 14px; font-size: .8rem; }
.mm-login-r { background: var(--mm-surface); padding: 44px; backdrop-filter: blur(12px); }
@media (max-width: 767.98px) {
  .mm-login { grid-template-columns: 1fr; }
  .mm-login-l { padding: 28px; }
  .mm-login-l h2, .mm-login-l p, .mm-feat { display: none; }
  .mm-login-r { padding: 28px; }
}

/* ---------- Filtre pastila + avatar (liste) ---------- */
.mm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mm-chip { padding: 7px 16px; border-radius: 999px; background: var(--mm-surface); border: 1px solid rgba(79,107,255,.18); font-size: .85rem; color: inherit; text-decoration: none; transition: .2s; }
.mm-chip:hover { border-color: var(--mm-accent); color: inherit; transform: translateY(-1px); }
.mm-chip.on { background: var(--mm-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(79,107,255,.35); }
.mm-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .75rem; margin-right: 10px; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 { color: inherit; }
.mm-login-l h2 { color: #fff; }

/* ---------- Calendar planificator ---------- */
.mm-cal { background: var(--mm-surface); border: 1px solid rgba(79,107,255,.14); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); overflow: hidden; }
.mm-cal-head, .mm-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mm-cal-head div { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .6rem 0; background: var(--mm-grad-soft); font-weight: 600; }
.mm-cal-day { min-height: 104px; padding: 4px; border-top: 1px solid rgba(120,130,180,.18); border-left: 1px solid rgba(120,130,180,.12); transition: background .2s; }
.mm-cal-day:nth-child(7n+1) { border-left: 0; }
.mm-cal-day.out { opacity: .45; }
.mm-cal-day.today { background: rgba(34,211,238,.10); }
.mm-cal-day.today .mm-cal-num { background: var(--mm-grad); color: #fff; }
.mm-cal-day.over, .mm-cal-nodate.over { background: rgba(79,107,255,.16); outline: 2px dashed var(--mm-accent); outline-offset: -3px; }
.mm-cal-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.mm-cal-job { display: block; font-size: .72rem; line-height: 1.2; padding: 3px 7px; margin-bottom: 3px; border-radius: 999px; color: #fff !important; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #4f6bff; transition: transform .15s, box-shadow .2s; }
.mm-cal-job:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.mm-cal-job[draggable="true"] { cursor: grab; }
.mm-cal-job.dragging { opacity: .4; }
.mm-cal-job small { opacity: .85; }
.mm-cal-job.p-ridicata { background: linear-gradient(135deg,#ef4444,#f97316); }
.mm-cal-job.p-medie { background: linear-gradient(135deg,#4f6bff,#8b5cf6); }
.mm-cal-job.p-scazuta { background: linear-gradient(135deg,#10b981,#22d3ee); }
.mm-cal-job.s-finalizat { filter: grayscale(.7); opacity: .7; text-decoration: line-through; }
@media (max-width: 767.98px) {
  .mm-cal-day { min-height: 72px; padding: 2px; }
  .mm-cal-job { font-size: .62rem; padding: 2px 5px; }
  .mm-cal-job small { display: none; }
}

/* ---------- Bara de stare offline ---------- */
#mm-offline-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2000;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-radius: 999px; color: #fff; font-size: .88rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.35); backdrop-filter: blur(10px);
  max-width: 760px; margin: 0 auto;
}
#mm-offline-bar.off  { background: linear-gradient(135deg,#475569,#1e293b); }
#mm-offline-bar.warn { background: linear-gradient(135deg,#f59e0b,#ef4444); }
#mm-offline-bar.ok   { background: linear-gradient(135deg,#10b981,#0ea5e9); }
#mm-offline-bar .mm-ob-rand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#mm-offline-bar .mm-ob-btns { display: flex; gap: 6px; flex-shrink: 0; }
#mm-offline-bar.deschis { border-radius: 20px; }
.mm-ob-lista { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.35); max-height: 40vh; overflow: auto; }
.mm-ob-lista li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.mm-ob-lista small { opacity: .8; margin-left: 4px; }
@media (max-width: 575px) { #mm-offline-bar { border-radius: 20px; } #mm-offline-bar .mm-ob-rand { flex-direction: column; align-items: stretch; } }
.mm-ob-btn { border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mm-ob-btn:hover { background: rgba(255,255,255,.4); color: #fff; }

/* Cautare globala in bara laterala */
.mm-search { margin: 0 0 6px; }
.mm-search input {
  width: 100%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 14px; padding: 8px 12px; font-size: 13px; outline: none;
}
.mm-search input::placeholder { color: rgba(255,255,255,.55); }
.mm-search input:focus { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }


/* ---------- Ghid de utilizare (prezentare la prima autentificare) ---------- */
body.mm-ghid-deschis { overflow: hidden; }
.mm-ghid {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 18, 45, .62); backdrop-filter: blur(4px);
}
.mm-ghid-card {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #212529);
  border-radius: 22px; padding: 22px 24px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.mm-ghid-cap { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mm-ghid-ico { font-size: 1.9rem; line-height: 1; }
.mm-ghid-pas { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; flex: 1; }
.mm-ghid-x { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: inherit; opacity: .55; padding: 0 6px; }
.mm-ghid-x:hover { opacity: 1; }
.mm-ghid-titlu { font-size: 1.3rem; margin: 4px 0 8px; }
.mm-ghid-rezumat { margin-bottom: 8px; }
.mm-ghid-lista { padding-left: 1.15rem; margin-bottom: 10px; }
.mm-ghid-lista li { margin-bottom: 6px; }
.mm-ghid-link { display: inline-block; font-weight: 600; margin-bottom: 6px; }
.mm-ghid-puncte { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mm-ghid-punct { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: currentColor; opacity: .22; }
.mm-ghid-punct.activ { opacity: .9; background: var(--bs-primary, #4f46e5); width: 22px; border-radius: 6px; }
.mm-ghid-jos { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 575px) { .mm-ghid { align-items: flex-end; padding: 8px; } .mm-ghid-card { border-radius: 20px; padding: 18px 16px 14px; } }
