/* ============================================================
   ACCESS CONTROL PANEL — CSS
   Fișier: css/access.css
   ============================================================ */

/* ---- VARIABILE ---- */
#acp-app {
    --bg: #f5f7fb;
    --card: #ffffff;
    --card-2: #f9fbff;
    --text: #172033;
    --muted: #6e7a91;
    --line: #dfe6f1;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --green: #16a34a;
    --orange: #f59e0b;
    --red: #dc2626;
    --shadow: 0 10px 30px rgba(18, 35, 66, 0.08);
}

/* ---- RESET ---- */
#acp-app * {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#acp-app {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    padding: 24px;
    border-radius: 22px;
    color: var(--text);
    width: 100%;
    min-height: 100vh;
}

/* ---- LAYOUT SHELL ---- */
#acp-app .acp-shell {
max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- SIDEBAR ---- */
#acp-app .acp-sidebar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    min-height: auto;
    position: sticky;
    top: 40px;
    align-self: start;
}

#acp-app .acp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

#acp-app .acp-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

#acp-app .acp-brand h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

#acp-app .acp-brand small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

/* ---- SIDEBAR NAV ---- */
#acp-app .acp-nav {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
}

#acp-app .acp-nav button {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
    font-weight: 500;
}

#acp-app .acp-nav button:hover {
    background: #f3f7ff;
    border-color: #d9e6ff;
}

#acp-app .acp-nav button.active {
    background: #eef4ff;
    border-color: #cfe0ff;
    color: var(--primary-2);
    font-weight: 700;
}

/* ---- SIDEBAR CARDS ---- */
#acp-app .acp-sidebar-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: var(--card-2);
    margin-bottom: 16px;
}

#acp-app .acp-sidebar-card h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

#acp-app .acp-sidebar-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

#acp-app .acp-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* ---- FILTRARE ROLURI SIDEBAR ---- */

/* Containerul care afiseaza badge-urile rolurilor, cate unul pe rand */
#acp-app .acp-role-filter-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

/* Badge-ul de filtrare — clickabil */
#acp-app .acp-filter-badge {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: block;
    width: 100%;
    text-align: left;
}

#acp-app .acp-filter-badge:hover {
    transform: translateX(3px);
}

/* Starea activa — badge selectat */
#acp-app .acp-filter-badge.acp-filter-active {
    box-shadow: 0 0 0 2px currentColor;
    transform: translateX(3px);
}

/* ---- CHECKBOX "STRICT PENTRU ROL" ---- */
#acp-app .acp-strict-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    padding: 6px 0 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    user-select: none;
}

#acp-app .acp-strict-check input[type="checkbox"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- MAIN ---- */
#acp-app .acp-main {
    display: grid;
    gap: 20px;
    align-content: start;
}

/* ---- TOP BAR ---- */
#acp-app .acp-topbar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#acp-app .acp-title-wrap h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

#acp-app .acp-title-wrap p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

#acp-app .acp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
#acp-app .acp-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}

#acp-app .acp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 32, 61, 0.06);
}

#acp-app .acp-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

#acp-app .acp-btn-primary:hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}

#acp-app .acp-btn-danger {
    background: #fff;
    color: var(--red);
    border-color: #fecaca;
}

#acp-app .acp-btn-danger:hover {
    background: #fff1f1;
}

/* ---- STAT CARDS ---- */
#acp-app .acp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#acp-app .acp-stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}

#acp-app .acp-stat-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

#acp-app .acp-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

#acp-app .acp-stat-note {
    font-size: 12px;
    color: var(--muted);
}

/* ---- CONTENT CARD ---- */
#acp-app .acp-content-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#acp-app .acp-card-head {
    padding: 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#acp-app .acp-card-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

#acp-app .acp-card-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

#acp-app .acp-head-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- SEARCH ---- */
#acp-app .acp-search {
    position: relative;
}

#acp-app .acp-search input {
    width: 260px;
    max-width: 100%;
    padding: 11px 14px 11px 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    outline: none;
    background: #fff;
    font-size: 14px;
    transition: 0.2s ease;
}

#acp-app .acp-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#acp-app .acp-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #8fa0b8;
}

/* ---- SELECT ---- */
#acp-app .acp-select {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 14px;
    background: #fff;
    font-size: 14px;
    outline: none;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s ease;
}

#acp-app .acp-select:focus {
    border-color: var(--primary);
}

/* ---- INPUT ---- */
#acp-app .acp-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 14px;
    background: #fff;
    font-size: 14px;
    outline: none;
    color: var(--text);
    transition: 0.2s ease;
}

#acp-app .acp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ---- TABLE ---- */
#acp-app .acp-table-wrap {
    overflow-x: auto;
    padding: 0 20px 20px;
}

#acp-app table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

#acp-app thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: left;
    padding: 0 14px 6px;
    font-weight: 700;
}

#acp-app tbody tr {
    background: transparent !important;
}

#acp-app tbody td {
    background: #fbfcff;
    transition: background 0.15s ease;
}

#acp-app tbody tr:hover td {
    background: #f3f7ff;
}

#acp-app tbody td {
    padding: 12px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14px;
}

#acp-app tbody td:first-child {
    border-left: 1px solid var(--line);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

#acp-app tbody td:last-child {
    border-right: 1px solid var(--line);
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* ---- PAGE CELL ---- */


#acp-app .acp-page-title {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

#acp-app .acp-page-slug {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    word-break: break-all;
}

/* ---- ROLE GRID IN TABLE ---- */
#acp-app .acp-role-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#acp-app .acp-check {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.15s ease;
    user-select: none;
    flex-shrink: 0;
}

#acp-app .acp-check:hover {
    border-color: #cfe0ff;
    background: #f8fbff;
}

#acp-app .acp-check.checked {
    background: #eef4ff;
    border-color: #cfe0ff;
}

#acp-app .acp-check input[type="checkbox"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0;
}

/* ---- BADGES ---- */
#acp-app .acp-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
    display: inline-block;
}

#acp-app .acp-role-public { background: #f6f7fb; color: #5f6b85; border-color: #e0e6f0; }
#acp-app .acp-role-logged_in { background: #eefbff; color: #0f7490; border-color: #c9edf7; }
#acp-app .acp-role-administrator { background: #eef4ff; color: #2457d6; border-color: #d3e1ff; }
#acp-app .acp-role-mini_administrator { background: #eef4ff; color: #3b6fd6; border-color: #d3e1ff; }
#acp-app .acp-role-expert_admin { background: #ecfdf3; color: #0f8d47; border-color: #c9f3d9; }
#acp-app .acp-role-expert_manager { background: #ecfdf3; color: #15803d; border-color: #c9f3d9; }
#acp-app .acp-role-client_admin { background: #f5f0ff; color: #7c3aed; border-color: #e2d4ff; }
#acp-app .acp-role-client_manager { background: #f5f0ff; color: #9333ea; border-color: #e2d4ff; }
#acp-app .acp-role-client_angajat { background: #f5f0ff; color: #a855f7; border-color: #e2d4ff; }
#acp-app .acp-role-demo { background: #fff6e9; color: #b76a08; border-color: #ffdca1; }

/* ---- STATUS BADGES ---- */
#acp-app .acp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

#acp-app .acp-status-public {
    background: #eefcf3;
    color: var(--green);
    border: 1px solid #ccefd7;
}

#acp-app .acp-status-restricted {
    background: #fff7ea;
    color: #c97700;
    border: 1px solid #ffe0aa;
}

#acp-app .acp-status-blocked {
    background: #fff1f1;
    color: var(--red);
    border: 1px solid #fecaca;
}



/* ---- MAINTENANCE BOX ---- */
#acp-app .acp-maintenance-box {
    margin: 20px;
    border: 1px solid #ffe2a8;
    background: linear-gradient(180deg, #fff8e8 0%, #fffdf6 100%);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

#acp-app .acp-maint-left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

#acp-app .acp-warning-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ffd37a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    font-size: 20px;
    flex-shrink: 0;
}

#acp-app .acp-maint-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}

#acp-app .acp-maint-text {
    margin: 0;
    font-size: 13px;
    color: #8a6721;
    line-height: 1.6;
}

/* ---- SWITCH ---- */
#acp-app .acp-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#acp-app .acp-switch-label {
    font-size: 14px;
    font-weight: 700;
}

#acp-app .acp-switch {
    position: relative;
    width: 60px;
    height: 32px;
    display: inline-block;
}

#acp-app .acp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

#acp-app .acp-slider {
    position: absolute;
    inset: 0;
    background: #d4ddea;
    border-radius: 999px;
    transition: 0.25s ease;
    cursor: pointer;
}

#acp-app .acp-slider:before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#acp-app .acp-switch input:checked + .acp-slider {
    background: var(--orange);
}

#acp-app .acp-switch input:checked + .acp-slider:before {
    transform: translateX(28px);
}

/* ---- FOOTER NOTE ---- */
#acp-app .acp-footer-note {
    padding: 16px 20px 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ---- TOAST ---- */
#acp-app .acp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #14213d;
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 99999;
}

#acp-app .acp-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#acp-app .acp-toast.error {
    background: #991b1b;
}

#acp-app .acp-toast.success {
    background: #065f46;
}

/* ---- MODAL ---- */
#acp-app .acp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#acp-app .acp-modal {
    background: var(--card);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

#acp-app .acp-modal-head {
    padding: 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#acp-app .acp-modal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

#acp-app .acp-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: 0.15s ease;
}

#acp-app .acp-modal-close:hover {
    background: #f3f7ff;
    color: var(--text);
}

#acp-app .acp-modal-body {
    padding: 20px;
}

#acp-app .acp-form-group {
    margin-bottom: 18px;
}

#acp-app .acp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

#acp-app .acp-modal-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ---- LOADING SPINNER ---- */
#acp-app .acp-loading {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

#acp-app .acp-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: acp-spin 0.7s linear infinite;
    margin-bottom: 10px;
}

@keyframes acp-spin {
    to { transform: rotate(360deg); }
}



/* ---- RESPONSIVE ---- */
@media (max-width: 1180px) {
    #acp-app .acp-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    #acp-app .acp-shell {
        grid-template-columns: 1fr;
    }
    #acp-app .acp-sidebar {
        min-height: auto;
        position: static;
    }
}

@media (max-width: 680px) {
    #acp-app {
        padding: 14px;
    }
    #acp-app .acp-grid-4 {
        grid-template-columns: 1fr;
    }
    #acp-app .acp-search input {
        width: 100%;
    }
    #acp-app .acp-head-controls {
        width: 100%;
    }
}



#acp-app .acp-modal-role-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#acp-app .acp-modal .acp-check {
    padding: 8px 12px;
    font-size: 13px;
}

/* ---- CHECKBOX BLOCAT (roșu) ---- */
#acp-app .acp-check.acp-check-blocked {
    border-color: #fecaca;
    color: var(--red);
}

#acp-app .acp-check.acp-check-blocked.checked {
    background: #fff1f1;
    border-color: #fca5a5;
}

#acp-app .acp-check.acp-check-blocked input[type="checkbox"] {
    accent-color: var(--red);
}



/* ---- HEADER FILTRARE PAGINI ---- */
#acp-app .acp-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

#acp-app .acp-filter-header h4 {
    margin: 0;
}

/* Butonul × de resetare filtru */
#acp-app #acp-clear-filter {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: var(--red);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
    padding: 0;
}

#acp-app #acp-clear-filter:hover {
    background: #b91c1c;
}


/* ---- BADGE FILTRU BLOCATE ---- */
#acp-app .acp-role-blocked-filter {
    background: #fff1f1;
    color: var(--red);
    border-color: #fecaca;
}

/* ---- CERC INDICATOR SELECTIE IN BADGE-URI FILTRU ---- */
/* Badge-urile devin flex ca sa putem alinia cercul la dreapta */
#acp-app .acp-filter-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cercul e invizibil implicit */
#acp-app .acp-filter-badge::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 7px;
    flex-shrink: 0;
    opacity: 0;
    transition: 0.15s ease;
}

/* Cercul devine plin si vizibil doar cand badge-ul este selectat */
#acp-app .acp-filter-badge.acp-filter-active::after {
    background: currentColor;
    opacity: 1;
}


#acp-app .acp-clear-x {
    display: inline-block;
    transform: translateY(-2px);
}



/* ============================================================
   LOGIN BOX — Shortcode [custom_login_box]
   ============================================================ */

.clb_container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clb_shadow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    height: 8rem;
    width: 8rem;
    border-radius: 50%;
    background-color: white;
    filter: blur(70px);
    transition: opacity 300ms;
    opacity: 0;
    pointer-events: none;
}

.clb_card {
    position: relative;
    z-index: 1;
    display: flex;
    height: auto;
    width: 100%;
    max-width: 27.5rem;
    margin: auto;
    flex-direction: column;
    overflow: hidden;
    border-radius: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(to top, rgba(244, 244, 245, 0.1), rgba(9, 9, 11, 0.5) 50%);
    padding: 2rem;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -1px;
    backdrop-filter: blur(40px);
}

.clb_tabs {
    position: relative;
    display: inline-flex;
    height: 3rem;
    align-items: center;
    border-radius: 9999px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(9, 9, 11, 0.75);
    padding: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.clb_tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    height: 100%;
    width: 50%;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    transition: color 300ms;
    text-decoration: none;
}

.clb_tab.active {
    color: white;
    background-color: rgb(39, 39, 42);
    border-radius: 9999px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    outline: 1px solid rgba(255, 255, 255, 0.04);
    outline-offset: -1px;
}

.clb_tab_link {
    color: rgb(113, 113, 122);
    cursor: pointer;
}

.clb_tab_link:hover {
    color: white;
}

.clb_title {
    margin-bottom: 1.75rem;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Caseta de eroare */
.clb_error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 180, 180, 0.9);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mesaj de succes recuperare parolă */
.clb_success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: rgba(180, 255, 200, 0.9);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clb_form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}

.clb_input_container {
    position: relative;
    height: 2.75rem;
    overflow: hidden;
}

.clb_input {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0 1rem;
    transition: all 300ms;
    color: white;
}

.clb_input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.clb_input:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.12);
}

.clb_input:hover {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.clb_input_glow_line {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent 5%, white, transparent 95%);
    opacity: 0;
    transition: opacity 300ms;
}

.clb_input_glow_blur {
    position: absolute;
    bottom: 0;
    z-index: 1;
    height: 1rem;
    left: 1rem;
    right: 1rem;
    transform-origin: bottom;
    transform: scaleY(0) skewX(-12deg);
    background: linear-gradient(to bottom, white, transparent);
    opacity: 0;
    filter: blur(12px);
    transition: all 300ms;
}

.clb_input:focus + .clb_input_glow_line {
    opacity: 0.4;
}

.clb_input:focus ~ .clb_input_glow_blur {
    transform: scaleY(1) skewX(-12deg);
    opacity: 0.3;
}

/* Link "Ai uitat parola?" */
.clb_forgot {
    text-align: right;
    font-size: 0.75rem;
    margin-top: -0.25rem;
}

.clb_forgot a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 300ms;
}

.clb_forgot a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Formular recuperare parolă */
.clb_recovery {
    display: none;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}

.clb_recovery.visible {
    display: flex;
}

/* Link "Înapoi la conectare" */
.clb_back_link {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.clb_back_link a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: color 300ms;
}

.clb_back_link a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.clb_submit_btn {
    margin-top: 0.5rem;
    height: 3rem;
    width: 100%;
    cursor: pointer;
    border-radius: 0.375rem;
    background-color: white;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(39, 39, 42);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 300ms;
}

.clb_submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.clb_bottom_glow {
    position: absolute;
    bottom: -5rem;
    left: 8rem;
    right: 8rem;
    height: 2.5rem;
    background-color: white;
    filter: blur(40px);
}

@media (min-width: 40rem) {
    .clb_container {
        padding: 2.5rem;
    }
}

/* ============================================================
   PARTICULE FUNDAL — Homepage useri nelogați
   ============================================================ */

.particles-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    background-image: url('https://isu.ro/wp-content/uploads/2025/08/javier-miranda-AlJ9TQqeCV0-unsplash.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.particles-background-overlay canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Fără asta, tema acoperă fundalul cu particule */
body {
    background: transparent !important;
}



/* ============================================================
   NOU LAYOUT CARD-HEAD — Titlu + Controale + Taburi roluri
   ============================================================ */

/* Card-head cu structură pe coloane (titlu deasupra, taburi dedesubt) */
#acp-app .acp-card-head.acp-card-head-new {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

/* Rândul 1: titlu la stânga, controale la dreapta */
#acp-app .acp-card-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Rândul 1: titlul h3 nu are margin jos în noul context */
#acp-app .acp-card-head-row h3 {
    margin: 0;
}

/* Rândul 2: taburile rolurilor, orizontal, cu wrap */
#acp-app .acp-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Override pentru badge-urile din taburi (orizontal, nu vertical ca în sidebar) */
#acp-app .acp-role-tabs .acp-filter-badge {
    display: inline-flex;
    width: auto;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 5px 11px;
    font-size: 11px;
}

#acp-app .acp-role-tabs .acp-filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#acp-app .acp-role-tabs .acp-filter-badge.acp-filter-active {
    box-shadow: 0 0 0 2px currentColor;
    transform: translateY(-2px);
}

/* Ascunde cercul indicator (specific pentru layout vertical din sidebar) */
#acp-app .acp-role-tabs .acp-filter-badge::after {
    display: none;
}


/* ---- TOP ROW (sidebar + topbar/stats) ---- */
#acp-app .acp-top-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 12px;
    align-items: start;
}

/* ---- TOP RIGHT (topbar + stats stivuite) ---- */
#acp-app .acp-top-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- Fix titlu sidebar pe un rând ---- */
#acp-app .acp-brand h2 {
    white-space: nowrap;
}


/* ---- GRUPURI TABURI FILTRARE ---- */
#acp-app .acp-role-tabs {
    gap: 8px;
    align-items: flex-start;
}

#acp-app .acp-role-group {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #f3f6fb;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 7px 10px;
}

#acp-app .acp-role-group-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1;
}

/* Container orizontal pentru badge-urile din grup */
#acp-app .acp-group-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ---- BUTOANE VIZUALIZARE (Compact / Extins) ---- */
#acp-app .acp-view-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#acp-app .acp-view-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
    margin-left: 4px;
}

#acp-app .acp-view-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- RÂND COMPACT ---- */
#acp-app tr.acp-row-compact td {
    padding: 8px 10px;
}

#acp-app .acp-compact-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Buton extindere per rând */
#acp-app .acp-expand-btn,
#acp-app .acp-collapse-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: 0.15s ease;
    padding: 0;
}

#acp-app .acp-expand-btn:hover {
    background: #eef4ff;
    border-color: var(--primary);
    color: var(--primary);
}

#acp-app .acp-collapse-btn {
    background: var(--red);
    border-color: var(--red);
    color: #ffffff;
}

#acp-app .acp-collapse-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

#acp-app .acp-td-action {
    text-align: right;
    vertical-align: top;
    padding-top: 14px !important;
    width: 50px;
}


/* ---- ROLURI PE COLOANE (mod extins) ---- */
#acp-app .acp-roles-columns {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#acp-app .acp-roles-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

#acp-app .acp-roles-col-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 6px;
    background: #f3f6fb;
    border-radius: 7px;
    white-space: nowrap;
    margin-bottom: 2px;
}

/* Checkbox dezactivat (Mentenanță — disponibil curând) */
#acp-app .acp-check.acp-check-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
}

#acp-app .acp-check.acp-check-disabled input[type="checkbox"] {
    cursor: not-allowed;
}




/* ---- GRUP EXCLUS — checkbox în loc de badge ---- */
#acp-app .acp-exclus-group {
    border-color: #fde68a;
    background: #fffbeb;
}

#acp-app .acp-exclus-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    user-select: none;
    padding: 4px 6px;
    border-radius: 8px;
    transition: 0.15s ease;
}

#acp-app .acp-exclus-check:hover {
    background: #fef3c7;
}

#acp-app .acp-exclus-check input[type="checkbox"] {
    accent-color: #d97706;
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
}

/* ============================================================
   LAYOUT ROL EXTINS — Buton collapse deasupra coloanelor
   ============================================================ */

/* Wrapper vertical: bara cu butonul + coloanele cu roluri */
#acp-app .acp-roles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Bara care conține butonul ×, aliniată la dreapta */
#acp-app .acp-roles-collapse-bar {
    display: flex;
    justify-content: flex-end;
}

/* Textul din checkbox-uri nu se mai împarte pe 2 rânduri */
#acp-app .acp-check span {
    white-space: nowrap;
}



/* ============================================================
   SLUG LINK — Click pe slug deschide pagina în tab nou
   ============================================================ */
.acp-slug-link {
    color: #6e7a91;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.15s;
}
.acp-slug-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* ============================================================
   BUTON EDIT ELEMENTOR — Sub badge-ul de status
   ============================================================ */
.acp-edit-elementor-btn {
    display: inline-block;
    padding: 3px 10px;
    background: #7B3FE4;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    cursor: pointer;
}
.acp-edit-elementor-btn:hover {
    background: #6030c0;
    color: #fff !important;
    transform: translateY(-1px);
}



/* ============================================================
   BUTON SHORTCODURI
   ============================================================ */

/* Hover pe randul compact — indica ca e clickabil */
#acp-app tr.acp-row-compact:hover {
    background: #f1f5ff;
}

.acp-shortcodes-btn {
    display: inline-block;
    padding: 3px 10px;
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    line-height: 1.5;
}
.acp-shortcodes-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}
.acp-shortcodes-btn.active {
    background: #0369a1;
}

/* ============================================================
   ZONA SHORTCODE-URI — sub coloanele cu roluri
   ============================================================ */
.acp-shortcodes-area {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.acp-sc-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.acp-sc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    flex-wrap: wrap;
}
.acp-sc-name {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 12px;
    white-space: nowrap;
}
.acp-sc-arrow {
    color: #9ca3af;
    font-size: 14px;
    font-weight: bold;
}
.acp-sc-file {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    word-break: break-all;
}
.acp-sc-loading {
    color: #6e7a91;
    font-size: 12px;
    padding: 8px 4px;
    font-style: italic;
}
.acp-sc-empty {
    color: #6e7a91;
    font-size: 12px;
    padding: 8px 4px;
}
.acp-sc-error {
    color: #dc2626;
}


/* Fisier negasit — text rosu */
#acp-app .acp-sc-file-missing {
    color: #dc2626 !important;
    background: #fff1f1 !important;
    border-color: #fecaca !important;
}


/* ============================================================
   PAGE BUILDER MODAL — Stiluri pentru modalul de creare pagini
   ============================================================ */

/* Modalul este mai lat decât cel standard */
#acp-app .acp-page-modal {
    max-width: 680px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* Corpul modalului are scroll dacă sunt multe blocuri */
#acp-app .acp-page-modal .acp-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Rând cu 2 coloane pentru titlu + slug */
#acp-app .acp-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Text mic de hint sub câmpuri */
#acp-app .acp-input-hint {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.4;
}

/* Secțiunea cu lista de blocuri */
#acp-app .acp-page-blocks-section {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

/* Header-ul secțiunii cu butonul „+ Adaugă bloc" */
#acp-app .acp-page-blocks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fbff;
    border-bottom: 1px solid var(--line);
}

#acp-app .acp-blocks-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* Buton mic (pentru „+ Adaugă bloc") */
#acp-app .acp-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 10px;
}

/* Un bloc din repeater */
#acp-app .acp-block-item {
    border-bottom: 1px solid var(--line);
}
#acp-app .acp-block-item:last-child {
    border-bottom: none;
}

/* Header-ul blocului (titlu + buton ștergere) */
#acp-app .acp-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    background: #f5f8ff;
    border-bottom: 1px solid var(--line);
}

#acp-app .acp-block-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Butonul de ștergere bloc */
#acp-app .acp-block-remove {
    border: 1px solid #fecaca;
    background: #fff1f1;
    color: var(--red);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
}
#acp-app .acp-block-remove:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

/* Corpul blocului cu câmpurile */
#acp-app .acp-block-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Textarea shortcode — font monospaced */
#acp-app .acp-block-shortcode {
    width: 100%;
    resize: vertical;
    min-height: 58px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* Opțiunile de lățime Boxed / Full Width */
#acp-app .acp-width-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#acp-app .acp-width-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: 0.15s ease;
    user-select: none;
    flex: 1;
    min-width: 130px;
}
#acp-app .acp-width-option:hover {
    border-color: var(--primary);
    background: #f0f6ff;
}
#acp-app .acp-width-option.active {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}
#acp-app .acp-width-option input[type="radio"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Butonul verde „Editează structura" din tabel */
.acp-edit-structure-btn {
    display: inline-block;
    padding: 3px 10px;
    background: #059669;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    line-height: 1.5;
}
.acp-edit-structure-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}


/* ============================================================
   Logo pagina de conectare — readus la dimensiune mică.
   Imaginea (logo-isu-conectare.png) e un widget Elementor și se
   afișa la mărimea ei naturală de 204px (prea mare). O fixăm la 96px.
   Acest fișier se încarcă DOAR pe pagina de login / homepage, deci
   regula nu atinge alte pagini.
   👉 Vrei alt diametru? Schimbă cele două valori "96px" de mai jos.
   ============================================================ */
.elementor-widget-image img[src*="logo-isu-conectare"] {
    width: 96px !important;
    max-width: 96px !important;
    height: auto !important;
}
