/* COST PACK — PPWR
   Autor: CRIL DEV — https://www.cril.ro */

:root {
    --cp-sidebar-bg: #10202e;
    --cp-sidebar-bg-2: #16293a;
    --cp-sidebar-fg: #c8d6e2;
    --cp-accent: #0f6fc4;
    --cp-accent-soft: rgba(15, 111, 196, .14);
    --cp-border: #dde3ea;
    --cp-bg: #f2f5f8;
    --cp-sidebar-w: 252px;
}

body {
    background: var(--cp-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

/* ---------- Shell ---------- */
.cp-shell { display: flex; min-height: 100vh; }

.cp-sidebar {
    width: var(--cp-sidebar-w);
    flex: 0 0 var(--cp-sidebar-w);
    background: linear-gradient(180deg, var(--cp-sidebar-bg) 0%, var(--cp-sidebar-bg-2) 100%);
    color: var(--cp-sidebar-fg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.cp-brand { display: flex; align-items: center; gap: .65rem; padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.cp-brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 7px;
    background: var(--cp-accent); color: #fff; font-weight: 700; letter-spacing: .5px; font-size: 13px;
}
.cp-brand-mark-lg { width: 46px; height: 46px; font-size: 17px; }
.cp-brand-text strong { display: block; color: #fff; font-size: 14px; letter-spacing: .4px; }
.cp-brand-text small { color: #8ba3b8; font-size: 11px; }

.cp-nav { flex: 1; padding: .5rem 0 1rem; }
.cp-nav ul { list-style: none; margin: 0; padding: 0; }
.cp-nav-group {
    padding: .95rem 1.15rem .3rem;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
    color: #6b849b; font-weight: 600;
}
.cp-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: .48rem 1.15rem; color: var(--cp-sidebar-fg);
    text-decoration: none; font-size: 13.5px; border-left: 3px solid transparent;
}
.cp-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.cp-nav-link.active { background: rgba(15,111,196,.22); border-left-color: var(--cp-accent); color: #fff; font-weight: 600; }
.cp-nav-link.disabled { color: #5c7286; cursor: default; }
.cp-nav-link.disabled:hover { background: transparent; color: #5c7286; }
.cp-soon { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }

.cp-sidebar-footer { padding: .8rem 1.15rem; border-top: 1px solid rgba(255,255,255,.08); }
.cp-sidebar-footer a { color: #7f97ad; font-size: 11px; text-decoration: none; }
.cp-sidebar-footer a:hover { color: #fff; }

.cp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Topbar ---------- */
.cp-topbar {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border-bottom: 1px solid var(--cp-border);
    padding: .7rem 1.25rem; position: sticky; top: 0; z-index: 20;
}
.cp-page-title { font-size: 17px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-global-search { flex: 1; max-width: 460px; margin-left: auto; }
.cp-topbar-right { display: flex; align-items: center; gap: .5rem; }

.cp-content { padding: 1.25rem; flex: 1; }
.cp-footer {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: .8rem 1.25rem; border-top: 1px solid var(--cp-border);
    color: #6c7a89; font-size: 11.5px; background: #fff;
}

/* ---------- Cards / tables ---------- */
.card { border-color: var(--cp-border); box-shadow: 0 1px 2px rgba(16,32,46,.05); }
.card-header { background: #fbfcfd; border-bottom: 1px solid var(--cp-border); font-weight: 600; font-size: 13.5px; }

.cp-stat { border-radius: .5rem; background: #fff; border: 1px solid var(--cp-border); padding: .85rem 1rem; height: 100%; }
.cp-stat .cp-stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.cp-stat .cp-stat-label { font-size: 11.5px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.cp-stat.is-success { border-left: 4px solid var(--bs-success); }
.cp-stat.is-warning { border-left: 4px solid var(--bs-warning); }
.cp-stat.is-danger  { border-left: 4px solid var(--bs-danger); }
.cp-stat.is-primary { border-left: 4px solid var(--cp-accent); }
.cp-stat.is-secondary { border-left: 4px solid #94a3b8; }

.table { font-size: 13px; }
.table > :not(caption) > * > * { padding: .5rem .6rem; vertical-align: middle; }
.table thead th { background: #f7f9fb; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #52606d; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { background-color: var(--cp-accent-soft); }
.cp-table-wrap { overflow-x: auto; }

.cp-filters { background: #fff; border: 1px solid var(--cp-border); border-radius: .5rem; padding: .85rem; margin-bottom: 1rem; }
.cp-empty { text-align: center; padding: 2.5rem 1rem; color: #7b8794; }

.badge { font-weight: 600; letter-spacing: .02em; }
.cp-legal-note {
    background: #fff8e6; border: 1px solid #f0d38a; border-left: 4px solid #e0a800;
    border-radius: .4rem; padding: .7rem .9rem; font-size: 12.5px; color: #5c4813;
}
.cp-required-note { font-size: 11.5px; color: #7b8794; }
.cp-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #52606d; font-weight: 700; margin: 1.25rem 0 .5rem; }

/* ---------- Auth ---------- */
.cp-auth-body { background: linear-gradient(160deg, #10202e 0%, #1d3a52 100%); min-height: 100vh; }
.cp-auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; }
.cp-auth-card { width: 100%; max-width: 410px; background: #fff; border-radius: .6rem; padding: 1.75rem; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.cp-auth-head { text-align: center; margin-bottom: 1.25rem; }
.cp-auth-head h1 { font-size: 19px; font-weight: 700; margin: .7rem 0 .2rem; }
.cp-auth-head p { font-size: 12px; color: #64748b; margin: 0; }
.cp-auth-foot { margin-top: 1rem; font-size: 11.5px; color: #8ba3b8; }
.cp-auth-foot a { color: #cfe0ee; }

/* ---------- Public verify ---------- */
.cp-verify-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--cp-bg); }
.cp-verify-card { max-width: 620px; width: 100%; background: #fff; border: 1px solid var(--cp-border); border-radius: .6rem; padding: 1.75rem; }
.cp-verify-status { font-size: 22px; font-weight: 800; letter-spacing: .06em; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .cp-sidebar { position: fixed; z-index: 1040; left: -100%; transition: left .2s ease; }
    .cp-sidebar.open { left: 0; }
    .cp-global-search { display: none; }
}

@media print {
    .cp-sidebar, .cp-topbar, .cp-footer, .no-print { display: none !important; }
    .cp-content { padding: 0; }
    body { background: #fff; }
}
