:root {
    /* ── Cores da Marca e Paleta Principal ── */
    --primary: #5825d6;
    --primary-light: #7c4dff;
    --primary-subtle: #f4f0ff;
    --secondary: #475569;
    --accent: #5825d6;
    
    /* ── Cores Semânticas ── */
    --danger: #dc2626;
    --danger-subtle: #fff1f2;
    --warning: #d97706;
    --warning-subtle: #fffbe6;
    --success: #16a34a;
    --success-subtle: #f0fdf4;
    --info: #0284c7;
    --info-subtle: #f0f9ff;
    
    /* ── Cores Neutras e Estruturais ── */
    --background: #f0f3f8;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --divider: #cbd5e1;
    --header-bg: #5825d6;

    /* ── Escala de Tipografia ── */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

    /* ── Escala de Cantos Arredondados (Border Radius) ── */
    --border-radius: 8px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --card-radius: 12px;

    /* ── Escala de Sombras (Shadows) ── */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.03);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.06), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.04);

    /* ── Escala de Espaçamento ── */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */

    /* ── Transições ── */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT STRUCTURE ── */
.app-wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 64px - 44px);
}

/* ── SIDEBAR ── */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0.5rem;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    border-left: 3px solid transparent;
}

.sidebar-link svg {
    color: #94a3b8;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.sidebar-link:hover svg {
    color: var(--primary);
}

.sidebar-link.active {
    background: #ede9fe;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(88, 37, 214, 0.12);
}

.sidebar-link.active svg {
    color: var(--primary);
}

.sidebar-header {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ── MAIN CONTENT ── */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    background: var(--background);
}

.container {
    width: 100%;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--divider);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ── BUTTONS ── */
.btn {
    padding: 0.55rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(88, 37, 214, 0.15);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(88, 37, 214, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--divider);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-success:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 11px;
    border-radius: 6px;
}

/* Proteção Anti-Double-Click */
.btn.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── FORMS & VALIDATION ── */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

label.required::after, .label-required::after {
    content: " *";
    color: var(--danger);
    font-weight: 700;
}

input, select, textarea, .form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    background: white;
    font-size: 13.5px;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 37, 214, 0.15);
}

/* Estados de Validação de Formulário */
input.is-invalid, select.is-invalid, textarea.is-invalid,
input.has-error, select.has-error, textarea.has-error {
    border-color: var(--danger) !important;
    background-color: var(--danger-subtle);
}

input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.form-text-error, .invalid-feedback {
    font-size: 11.5px;
    color: var(--danger);
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-text-help {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── TABLES ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--divider);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--divider);
    font-size: 13px;
    transition: background 0.15s ease;
}

tr:hover td {
    background: #f1f5f9;
}

/* ── BADGES ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-badge[class*=" status-"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.status-badge:has(svg)::before {
    display: none;
}

/* Dentro de datatables, badges de status com rótulo longo (ex: "Análise
   Manifestação do Cliente") não podem forçar a coluna a ficar larga demais —
   deixa quebrar em 2 linhas em vez de empurrar a tabela para fora da tela. */
td .status-badge {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

/* Color palettes para badges semânticos */
.status-aberta, .status-approved, .status-aprovada_prestadora, .status-finalizada, .status-bloqueado, .status-improcedente, .status-ativo { 
    background: var(--success-subtle); 
    border: 1px solid #bbf7d0;
    color: var(--success); 
}

.status-pendente, .status-pending, .status-pendente_prestadora, .status-pendente_tu, .status-pendente_marca, .status-nao_iniciada, .status-pendente_bloqueio, .status-em_uso, .status-cliente_notificado { 
    background: var(--warning-subtle); 
    border: 1px solid #fde68a;
    color: var(--warning); 
}

.status-concluida, .status-desbloqueado { 
    background: var(--info-subtle); 
    border: 1px solid #bae6fd;
    color: var(--info); 
}

.status-em_analise, .status-analise_defesa, .status-analise_manifestacao { 
    background: var(--primary-subtle); 
    border: 1px solid #ddd6fe;
    color: var(--primary); 
}

.status-approved_abr { 
    background: #e0f2fe; 
    border: 1px solid #bae6fd;
    color: #0369a1; 
}

.status-recusada, .status-rejected, .status-blocked, .status-bloqueio_temporario, .status-bloqueio_definitivo { 
    background: var(--danger-subtle); 
    border: 1px solid #fecdd3;
    color: var(--danger); 
}

.status-inactive { 
    background: #f1f5f9; 
    border: 1px solid #cbd5e1;
    color: #475569; 
}

/* Status de Inventário */
.status-utilizado { 
    background: #f3f4f6; 
    border: 1px solid #e5e7eb;
    color: #4b5563; 
}

/* ── ALERTS ── */
.flash-messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-warning { background: #fff4e5; color: #663c00; border: 1px solid #ffe0b2; }
.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

a svg {
    pointer-events: none;
}

.auth-card {
    max-width: 460px;
    margin: 4rem auto;
}

/* ── TOOLTIPS ── */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

[data-tooltip]:after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}

[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    width: 480px;
    max-width: 95%;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s;
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    
    .sidebar.mobile-active {
        left: 0;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .auth-card {
        margin: 2rem 1rem;
    }

    .sidebar-toggle {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .modal-card {
        padding: 1.5rem;
    }

    .header-info {
        display: none !important;
    }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(0,0,0,0.4);
    z-index: 998;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}


.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 14px;
}

/* -- FORM GRIDS -- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── COMPONENTES DE LAYOUT (HEADER / FOOTER / BREADCRUMB) ── */
.main-header {
    background: var(--header-bg);
    display: flex;
    align-items: center;
    padding: 0 32px;
    height: 64px;
    position: relative;
    overflow: hidden;
}

.main-header img {
    height: 48px;
    width: auto;
    position: relative;
    z-index: 1;
}

.header-separator {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.35);
    margin: 0 24px;
    position: relative;
    z-index: 1;
}

.header-title {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1px;
    position: relative;
    z-index: 1;
}

.breadcrumb-container {
    background: #ffffff;
    border: 1px solid var(--divider);
    border-radius: var(--border-radius);
    padding: 0 20px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.breadcrumb-path a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #aaa;
}

.breadcrumb-current {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.header-user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-welcome {
    font-size: 12px;
    color: var(--text-muted);
}

.main-footer {
    background: #fff;
    border-top: 1px solid var(--divider);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.2px;
}

.sidebar-support {
    margin-top: auto;
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--divider);
}

.support-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
}

.support-intro {
    display: block;
    margin-bottom: 8px;
}

.support-email-address {
    display: block;
    margin-top: 4px;
}

.support-email {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* ── COMPONENTES DE AUTENTICAÇÃO ── */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    color: var(--primary);
    font-size: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--divider);
    padding-top: 1.5rem;
}

.auth-footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer-link {
    color: var(--primary);
    font-weight: 600;
}

.btn-full {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-federated {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #5e5e5e;
    border: 1px solid #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 10px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.auth-divider-container {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider-line {
    position: absolute;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--divider);
    margin: 0;
    z-index: 0;
}

.auth-divider-text {
    background: #ffffff;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 12px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.forgot-password-link {
    text-align: right;
    margin-top: 5px;
}

.forgot-password-link a {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 500;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* ── PREMIUM SCROLLBAR ── */
.table-responsive-premium::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.table-responsive-premium::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.table-responsive-premium::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.3s;
}

.table-responsive-premium::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    opacity: 0.8;
}

/* Ensure dropdowns have enough space */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236330BF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px !important;
}

/* Modal de Selecao de IdP */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-icon-header {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 12px rgba(99, 48, 191, 0.15);
}

.label-premium {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.input-premium {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.2s;
    background: #ffffff;
}

.input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

/* ── EMPTY STATE COMPONENT ── */
.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(88, 37, 214, 0.12);
}

.empty-state-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

/* ── LOADING SPINNER COMPONENT ── */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    gap: 1rem;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(88, 37, 214, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Custom Password Toggle ── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--primary);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Hide native Edge/IE password reveal eye */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
