/* AERCONDITIONAT.ORG — Admin */
:root {
  --ac-sidebar: #0c1a2e;
  --ac-sidebar-2: #12243d;
  --ac-sidebar-text: #9fb3cc;
  --ac-accent: #0b84d8;
  --ac-accent-soft: #e6f3fc;
  --ac-bg: #f3f6fa;
  --ac-border: #e3e8ef;
  --ac-text: #1b2636;
  --ac-muted: #6b7a8f;
  --ac-sidebar-w: 248px;
  --bs-primary: #0b84d8;
  --bs-primary-rgb: 11, 132, 216;
  --bs-link-color: #0b6fb6;
  --bs-link-color-rgb: 11, 111, 182;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.ac-admin { background: var(--ac-bg); color: var(--ac-text); font-size: .925rem; }
.btn-primary { --bs-btn-bg: var(--ac-accent); --bs-btn-border-color: var(--ac-accent); --bs-btn-hover-bg: #0a74be; --bs-btn-hover-border-color: #0a74be; --bs-btn-active-bg: #0966a8; }
.btn-outline-primary { --bs-btn-color: var(--ac-accent); --bs-btn-border-color: var(--ac-accent); --bs-btn-hover-bg: var(--ac-accent); --bs-btn-hover-border-color: var(--ac-accent); }
.form-control:focus, .form-select:focus { border-color: #7cc0ee; box-shadow: 0 0 0 .2rem rgba(11,132,216,.15); }
.form-label { font-weight: 500; font-size: .85rem; color: #33445a; margin-bottom: .3rem; }
.form-text { font-size: .78rem; }

/* sidebar */
.ac-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--ac-sidebar-w); background: var(--ac-sidebar); color: var(--ac-sidebar-text); display: flex; flex-direction: column; z-index: 1040; transition: transform .2s ease; }
.ac-brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.2rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.ac-brand-icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #18a0f0, #0b6fb6); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.ac-brand-text { color: #fff; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-size: 1rem; }
.ac-brand-text span { color: #5cc0ff; }
.ac-brand-text small { display: block; font-weight: 500; font-size: .7rem; color: var(--ac-sidebar-text); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.ac-nav { padding: .75rem .65rem; overflow-y: auto; flex: 1; }
.ac-nav-section { text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; color: #5e7390; padding: 1rem .75rem .4rem; font-weight: 600; }
.ac-nav-link { display: flex; align-items: center; gap: .7rem; color: var(--ac-sidebar-text); text-decoration: none; padding: .55rem .75rem; border-radius: 8px; margin-bottom: 2px; font-weight: 500; }
.ac-nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.ac-nav-link:hover { background: var(--ac-sidebar-2); color: #fff; }
.ac-nav-link.active { background: var(--ac-accent); color: #fff; }
.ac-nav-count { margin-left: auto; background: #f59e0b; color: #1b1300; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: .1rem .5rem; }
.ac-nav-link.active .ac-nav-count { background: #fff; color: var(--ac-accent); }
.ac-sidebar-foot { padding: .9rem 1.2rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .82rem; }
.ac-sidebar-foot a { color: var(--ac-sidebar-text); text-decoration: none; }
.ac-sidebar-foot a:hover { color: #fff; }

/* main */
.ac-main { margin-left: var(--ac-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.ac-topbar { height: 62px; background: #fff; border-bottom: 1px solid var(--ac-border); display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 1020; }
.ac-page-title { font-size: 1.15rem; font-weight: 650; margin: 0; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-menu-btn { display: none; font-size: 1.5rem; color: var(--ac-text); padding: 0 .25rem; }
.ac-user-btn { display: flex; align-items: center; gap: .5rem; border: 0; font-weight: 500; }
.ac-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ac-accent-soft); color: var(--ac-accent); display: grid; place-items: center; font-weight: 700; }
.ac-content { padding: 1.5rem; flex: 1; }
.ac-footer { padding: 1rem 1.5rem; color: var(--ac-muted); font-size: .8rem; }

/* cards & tables */
.card { border: 1px solid var(--ac-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.card-header { background: #fff; border-bottom: 1px solid var(--ac-border); font-weight: 600; padding: .85rem 1.1rem; border-radius: 12px 12px 0 0 !important; }
.card-body { padding: 1.1rem; }
.table { --bs-table-hover-bg: #f6f9fc; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .65rem .75rem; vertical-align: middle; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ac-muted); font-weight: 600; background: #fafbfd; border-bottom-color: var(--ac-border); white-space: nowrap; }
.table-card { overflow: hidden; }
.ac-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.ac-toolbar .form-control, .ac-toolbar .form-select { min-width: 140px; }
.ac-stat { display: flex; gap: 1rem; align-items: center; }
.ac-stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.ac-stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.ac-stat-label { color: var(--ac-muted); font-size: .8rem; }
.bg-soft-blue { background: #e6f3fc; color: #0b84d8; }
.bg-soft-amber { background: #fff4e0; color: #c47a00; }
.bg-soft-green { background: #e5f7ee; color: #12895a; }
.bg-soft-violet { background: #efeafd; color: #6a4bd6; }
.ac-thumb { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; border: 1px solid var(--ac-border); background: #fff; }
.ac-thumb-empty { width: 52px; height: 52px; border-radius: 8px; border: 1px dashed #c9d3df; display: grid; place-items: center; color: #9aa8b8; }
.ac-dl dt { font-weight: 500; color: var(--ac-muted); font-size: .8rem; }
.ac-dl dd { margin-bottom: .6rem; }
.nav-tabs .nav-link { color: var(--ac-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--ac-accent); font-weight: 600; }
.ac-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.ac-img-item { border: 1px solid var(--ac-border); border-radius: 10px; padding: .5rem; background: #fff; position: relative; }
.ac-img-item.is-main { border-color: var(--ac-accent); box-shadow: 0 0 0 2px rgba(11,132,216,.15); }
.ac-img-item img { width: 100%; height: 120px; object-fit: contain; display: block; background: #fafbfd; border-radius: 6px; }
.ac-img-item .ac-img-pending { height: 120px; display: grid; place-items: center; text-align: center; font-size: .75rem; color: #9a6b00; background: #fff8e6; border-radius: 6px; padding: .5rem; }
.ac-opt-table td { vertical-align: middle; }
.ac-sticky-actions { position: sticky; bottom: 0; background: rgba(243,246,250,.94); backdrop-filter: blur(4px); padding: .85rem 0; border-top: 1px solid var(--ac-border); margin-top: 1rem; z-index: 5; }
.ac-timeline { list-style: none; padding: 0; margin: 0; }
.ac-timeline li { position: relative; padding: 0 0 1rem 1.4rem; border-left: 2px solid var(--ac-border); margin-left: .4rem; }
.ac-timeline li:last-child { padding-bottom: 0; }
.ac-timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ac-accent); }
.tech-table { width: 100%; border-collapse: collapse; }
.tech-table th, .tech-table td { border: 1px solid var(--ac-border); padding: .4rem .6rem; font-size: .85rem; }
.tech-table th { width: 40%; background: #f7f9fc; font-weight: 500; }
.text-muted-2 { color: var(--ac-muted); }
.ac-empty { text-align: center; padding: 3rem 1rem; color: var(--ac-muted); }
.ac-empty i { font-size: 2.2rem; display: block; margin-bottom: .5rem; opacity: .5; }

/* login */
.ac-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 10% -10%, #1a3a63 0%, transparent 60%), var(--ac-sidebar); padding: 1rem; }
.ac-login-card { width: 100%; max-width: 400px; border-radius: 16px; border: 0; box-shadow: 0 20px 60px rgba(0,0,0,.35); }

/* responsive */
@media (max-width: 991.98px) {
  .ac-sidebar { transform: translateX(-100%); }
  .ac-sidebar.open { transform: none; }
  .ac-main { margin-left: 0; }
  .ac-menu-btn { display: inline-block; }
  .ac-backdrop.show { position: fixed; inset: 0; background: rgba(8,15,28,.45); z-index: 1035; }
  .ac-content { padding: 1rem; }
  .ac-topbar { padding: 0 1rem; }
}

/* print (fișă comandă) */
@media print {
  .ac-sidebar, .ac-topbar, .ac-footer, .no-print, .btn, form.no-print { display: none !important; }
  .ac-main { margin: 0; }
  .ac-content { padding: 0; }
  .card { border: 0; box-shadow: none; }
  body.ac-admin { background: #fff; }
}
