/* ==========================================================
   Mystery Shopper Dashboard
   Ultramotor / Motomundo
   InsightLatam 2026
========================================================== */

/* ===========================
   VARIABLES
=========================== */

:root{

    --primary:#111827;
    --primary-light:#1f2937;

    --accent:#d71920;
    --accent-hover:#b9151b;

    --background:#f4f6fb;

    --card:#ffffff;

    --border:#e5e7eb;

    --text:#111827;

    --text-light:#6b7280;

    --success:#16a34a;

    --warning:#ea580c;

    --danger:#dc2626;

    --radius:18px;

    --shadow:
        0 10px 30px rgba(0,0,0,.06);

    --transition:.25s ease;

    --max-width:1600px;

}

/* ===========================
   RESET
=========================== */

*,
*::before,
*::after{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter','Segoe UI',sans-serif;

    background:var(--background);

    color:var(--text);

    min-height:100vh;

}

/* ===========================
   LINKS
=========================== */

a{

    color:inherit;

    text-decoration:none;

}

button{

    font-family:inherit;

}

/* ===========================
   HEADER
=========================== */

.site-header{

    position:sticky;

    top:0;

    z-index:1000;

    background:var(--primary);

    box-shadow:0 5px 20px rgba(0,0,0,.18);

}

.header-accent-bar{

    height:4px;

    background:linear-gradient(
        90deg,
        var(--accent),
        #ff5a5f
    );

}

.header-inner{

    max-width:var(--max-width);

    margin:auto;

    padding:16px 30px;

    display:flex;

    align-items:center;

    gap:20px;

}

.header-brand{

    display:flex;

    align-items:center;

    gap:12px;

}

.brand-accent{

    color:var(--accent);

    font-size:22px;

}

.brand-text{

    color:white;

    font-weight:700;

    text-transform:uppercase;

    font-size:13px;

    letter-spacing:.08em;

}

.header-title{

    flex:1;

}

.header-title h1{

    color:white;

    font-size:18px;

    font-weight:600;

}

/* ===========================
   USUARIO
=========================== */

.user-chip{

    display:flex;

    align-items:center;

    gap:16px;

}

.header-avatar{

    width:44px;

    height:44px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid rgba(255,255,255,.3);

}

.user-meta{

    display:flex;

    flex-direction:column;

}

.user-meta strong{

    color:white;

    font-size:.95rem;

}

.user-meta small{

    color:rgba(255,255,255,.7);

}

.header-nav{

    display:flex;

    gap:10px;

}

/* ===========================
   BOTONES
=========================== */

.btn-primary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 22px;

    border-radius:14px;

    background:var(--primary);

    color:white;

    border:none;

    cursor:pointer;

    font-weight:700;

    transition:var(--transition);

}

.btn-primary:hover{

    background:#000;

}

.btn-secondary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 22px;

    border-radius:14px;

    border:1px solid var(--border);

    background:white;

    color:var(--primary);

    font-weight:700;

    transition:var(--transition);

}

.btn-secondary:hover{

    background:#f8fafc;

}

.logout-link{

    background:var(--accent);

    color:white;

    padding:11px 18px;

    border-radius:12px;

    font-weight:700;

    transition:var(--transition);

}

.logout-link:hover{

    background:var(--accent-hover);

}

.header-link{

    padding:11px 18px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.25);

    color:white;

}

.header-link:hover{

    background:rgba(255,255,255,.12);

}

/* ===========================
   CONTENIDO
=========================== */

.site-main{

    max-width:var(--max-width);

    margin:auto;

    padding:32px;

}

.page-section{

    width:100%;

}

.page-title{

    font-size:2rem;

    margin-bottom:8px;

    font-weight:700;

}

.page-subtitle{

    color:var(--text-light);

    font-size:1rem;

    margin-bottom:25px;

}

.divider{

    height:1px;

    background:var(--border);

    margin:25px 0;

}

/* ===========================
   FOOTER
=========================== */

.site-footer{

    margin-top:50px;

    background:var(--primary);

    color:white;

    padding:18px;

}

.footer-inner{

    max-width:var(--max-width);

    margin:auto;

    display:flex;

    justify-content:center;

    gap:12px;

    flex-wrap:wrap;

}

.footer-sep{

    color:var(--accent);

}
/* ==========================================================
   DASHBOARD
========================================================== */

.dashboard-wrapper{

    width:100%;

    background:var(--card);

    border-radius:22px;

    padding:24px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.dashboard-card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

/* ===========================
   HEADER DEL DASHBOARD
=========================== */

.dashboard-card__header{

    display:flex;

    align-items:center;

    gap:15px;

    padding:18px 25px;

    border-bottom:1px solid var(--border);

    background:#fafafa;

}

.card-dot{

    width:12px;

    height:12px;

    border-radius:50%;

    background:var(--accent);

}

.card-label{

    flex:1;

    font-size:.82rem;

    font-weight:700;

    text-transform:uppercase;

    color:var(--text-light);

    letter-spacing:.08em;

}

.card-period{

    background:#ffe6e7;

    color:var(--accent);

    padding:8px 16px;

    border-radius:999px;

    font-size:.8rem;

    font-weight:700;

}

/* ===========================
   CONTENEDOR POWER BI
=========================== */

.iframe-container{

    width:100%;

    padding:18px;

}

.iframe-wrapper{

    position:relative;

    width:100%;

    height:0;

    overflow:hidden;

    border-radius:18px;

    background:#f8fafc;

    border:1px solid var(--border);

}

.iframe-wrapper iframe{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    border:none;

}

/* ===========================
   HERO
=========================== */

.dashboard-hero{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    margin-bottom:28px;

    padding:28px;

    border-radius:22px;

    background:linear-gradient(
        135deg,
        #ffffff,
        #f8fafc
    );

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.hero-left{

    flex:1;

}

.hero-title{

    font-size:2rem;

    font-weight:700;

    margin-bottom:10px;

}

.hero-description{

    color:var(--text-light);

    line-height:1.6;

}

.hero-actions{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

}

/* ===========================
   TARJETAS
=========================== */

.summary-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:22px;

    margin-bottom:30px;

}

.summary-card{

    background:white;

    border-radius:20px;

    padding:24px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:.25s;

}

.summary-card:hover{

    transform:translateY(-4px);

}

.summary-label{

    color:var(--text-light);

    font-size:.82rem;

    text-transform:uppercase;

    font-weight:700;

    margin-bottom:12px;

}

.summary-number{

    font-size:2rem;

    font-weight:700;

    color:var(--primary);

}

.summary-icon{

    width:52px;

    height:52px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#eef2ff;

    color:var(--primary);

    margin-bottom:16px;

}

/* ===========================
   ALERTAS
=========================== */

.info-banner{

    display:flex;

    align-items:center;

    gap:15px;

    padding:18px 22px;

    border-radius:18px;

    background:#eef6ff;

    border:1px solid #dbeafe;

    margin-bottom:25px;

}

.info-banner strong{

    color:var(--primary);

}

.info-banner p{

    color:var(--text-light);

}

/* ===========================
   LOADING
=========================== */

.loading-card{

    display:flex;

    align-items:center;

    justify-content:center;

    min-height:500px;

}

.loading-spinner{

    width:55px;

    height:55px;

    border:5px solid #ececec;

    border-top:5px solid var(--accent);

    border-radius:50%;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1200px){

    .summary-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:900px){

    .dashboard-hero{

        flex-direction:column;

        align-items:flex-start;

    }

}

@media(max-width:768px){

    .summary-grid{

        grid-template-columns:1fr;

    }

    .dashboard-wrapper{

        padding:15px;

    }

    .iframe-container{

        padding:10px;

    }

    .dashboard-card__header{

        flex-wrap:wrap;

    }

}

@media(max-width:480px){

    .hero-title{

        font-size:1.5rem;

    }

    .card-period{

        width:100%;

        text-align:center;

    }

}
/* ==========================================================
   ADMINISTRACIÓN DE USUARIOS
========================================================== */

/* ===== HERO ===== */

.users-admin-page{
    display:flex;
    flex-direction:column;
    gap:28px;
}

.users-hero{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    background:white;

    border-radius:22px;

    padding:28px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.users-title{

    font-size:2rem;

    font-weight:700;

    margin-bottom:10px;

}

.users-subtitle{

    color:var(--text-light);

    line-height:1.6;

    max-width:700px;

}

.users-hero-actions{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

}

.users-hero-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 18px;

    border-radius:999px;

    background:#ffe6e7;

    color:var(--accent);

    font-weight:700;

}

/* ===== TARJETAS ===== */

.users-summary-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:22px;

}

.users-summary-card{

    background:white;

    border-radius:20px;

    padding:25px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:.25s;

}

.users-summary-card:hover{

    transform:translateY(-4px);

}

.users-summary-label{

    display:inline-block;

    margin-bottom:12px;

    font-size:.78rem;

    text-transform:uppercase;

    color:var(--text-light);

    font-weight:700;

}

.users-summary-card strong{

    display:block;

    font-size:2rem;

    margin-bottom:10px;

    color:var(--primary);

}

.users-summary-card p{

    color:var(--text-light);

}

/* ===== LAYOUT ===== */

.users-layout{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:28px;

}

/* ===== PANEL ===== */

.users-panel{

    background:white;

    border-radius:22px;

    padding:25px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

/* ===== TITULOS ===== */

.panel-head{

    margin-bottom:22px;

}

.panel-head h2{

    font-size:1.35rem;

    margin-bottom:6px;

}

.panel-head p{

    color:var(--text-light);

}

/* ===== FORMULARIO ===== */

.pretty-form{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.pretty-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.span-2{

    grid-column:span 2;

}

.pretty-field{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.pretty-field label{

    font-weight:700;

}

.pretty-field input,

.pretty-field select{

    width:100%;

    padding:14px 16px;

    border-radius:14px;

    border:1px solid var(--border);

    background:white;

    transition:.25s;

    font-size:15px;

}

.pretty-field input:focus,

.pretty-field select:focus{

    outline:none;

    border-color:var(--accent);

    box-shadow:0 0 0 4px rgba(215,25,32,.12);

}

/* ===== UPLOAD ===== */

.upload-card{

    border:2px dashed var(--border);

    border-radius:18px;

    padding:18px;

    background:#fafafa;

}

.upload-card small{

    display:block;

    margin-top:8px;

    color:var(--text-light);

}

/* ===== BOTONES ===== */

.pretty-actions{

    display:flex;

    gap:12px;

    margin-top:12px;

}

/* ===== AVATAR ===== */

.avatar-upload-layout{

    display:flex;

    gap:18px;

    align-items:center;

}

.avatar-live-card{

    display:flex;

    align-items:center;

    gap:16px;

}

.avatar-live-preview{

    width:72px;

    height:72px;

    border-radius:50%;

    object-fit:cover;

    background:#ececec;

    border:2px solid var(--border);

}

.avatar-live-meta{

    display:flex;

    flex-direction:column;

    gap:4px;

}

.avatar-live-meta strong{

    font-size:15px;

}

.avatar-live-meta span{

    color:var(--text-light);

    font-size:13px;

}

/* ===== TABLA ===== */

.users-table-wrap{

    overflow:auto;

    border-radius:20px;

    border:1px solid var(--border);

}

.users-pretty-table{

    width:100%;

    border-collapse:collapse;

    min-width:900px;

    background:white;

}

.users-pretty-table th{

    background:#f8fafc;

    padding:18px;

    text-align:left;

    font-size:.82rem;

    text-transform:uppercase;

    color:var(--text-light);

}

.users-pretty-table td{

    padding:18px;

    border-top:1px solid var(--border);

}

.users-pretty-table tbody tr{

    transition:.2s;

}

.users-pretty-table tbody tr:hover{

    background:#fafafa;

}

/* ===== FILA USUARIO ===== */

.pretty-user-row{

    display:flex;

    align-items:center;

    gap:15px;

}

.pretty-avatar{

    width:55px;

    height:55px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid var(--border);

}

.pretty-muted{

    color:var(--text-light);

    font-size:13px;

}

/* ===== BADGES ===== */

.pretty-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:7px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

}

.pretty-role{

    background:#eef2ff;

    color:#4338ca;

}

.pretty-ok{

    background:#dcfce7;

    color:#15803d;

}

.pretty-off{

    background:#f3f4f6;

    color:#6b7280;

}

/* ===== ACCIONES ===== */

.table-actions-stack{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}

.table-action-link{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:9px 14px;

    border-radius:12px;

    border:1px solid var(--border);

    background:white;

    font-weight:600;

    transition:.25s;

}

.table-action-link:hover{

    background:#f8fafc;

}

.action-success{

    color:#15803d;

}

.action-warning{

    color:#ea580c;

}

.action-danger{

    color:#dc2626;

}

/* ===== RESPONSIVE ===== */

@media(max-width:1200px){

    .users-layout{

        grid-template-columns:1fr;

    }

}

@media(max-width:900px){

    .users-summary-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .users-hero{

        flex-direction:column;

        align-items:flex-start;

    }

    .pretty-grid{

        grid-template-columns:1fr;

    }

    .span-2{

        grid-column:span 1;

    }

    .avatar-upload-layout{

        flex-direction:column;

        align-items:flex-start;

    }

}
/* ==========================================================
   MODALES Y ALERTAS
========================================================== */

/* ===== Overlay ===== */

.users-modal{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:30px;

    background:rgba(17,24,39,.45);

    backdrop-filter:blur(6px);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:.25s;

    z-index:9999;

}

.users-modal.is-visible{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}

/* ===== Ventana ===== */

.users-modal-dialog{

    width:min(900px,100%);

    max-height:90vh;

    overflow:auto;

    background:white;

    border-radius:24px;

    box-shadow:
        0 30px 70px rgba(0,0,0,.20);

    animation:modalShow .25s ease;

}

@keyframes modalShow{

    from{

        opacity:0;

        transform:translateY(20px) scale(.98);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ===== Header ===== */

.users-modal-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:24px 30px;

    border-bottom:1px solid var(--border);

}

.users-modal-head h2{

    font-size:1.4rem;

    font-weight:700;

}

.modal-close-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#f3f4f6;

    cursor:pointer;

    font-size:22px;

    transition:.2s;

}

.modal-close-btn:hover{

    background:#e5e7eb;

}

/* ===== Body ===== */

.users-modal-body{

    padding:30px;

}

/* ===== Footer ===== */

.users-modal-actions{

    display:flex;

    justify-content:flex-end;

    gap:14px;

    padding:24px 30px;

    border-top:1px solid var(--border);

}

/* ==========================================================
   ALERTAS
========================================================== */

.alert{

    display:flex;

    align-items:center;

    gap:14px;

    padding:18px 20px;

    border-radius:16px;

    margin-bottom:22px;

    font-size:.95rem;

    font-weight:500;

}

.alert-success{

    background:#ecfdf3;

    border:1px solid #bbf7d0;

    color:#166534;

}

.alert-error{

    background:#fef2f2;

    border:1px solid #fecaca;

    color:#991b1b;

}

.alert-warning{

    background:#fff7ed;

    border:1px solid #fed7aa;

    color:#9a3412;

}

.alert-info{

    background:#eff6ff;

    border:1px solid #bfdbfe;

    color:#1d4ed8;

}

/* ==========================================================
   MENSAJES FLASH
========================================================== */

.flash-message{

    padding:18px 22px;

    border-radius:18px;

    margin-bottom:24px;

    font-weight:600;

    animation:fadeDown .35s;

}

.flash-success{

    background:#dcfce7;

    color:#166534;

}

.flash-danger{

    background:#fee2e2;

    color:#991b1b;

}

.flash-warning{

    background:#fef3c7;

    color:#92400e;

}

@keyframes fadeDown{

    from{

        opacity:0;

        transform:translateY(-15px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ==========================================================
   CONFIRMACIONES
========================================================== */

.confirm-user-card{

    display:flex;

    flex-direction:column;

    gap:10px;

    padding:24px;

    background:#fafafa;

    border-radius:18px;

    border:1px solid var(--border);

}

.confirm-user-card strong{

    font-size:1.1rem;

}

.confirm-user-card span{

    color:var(--text-light);

}

.confirm-user-card-danger{

    border-color:#fecaca;

    background:#fef2f2;

}

/* ==========================================================
   BOTONES MODAL
========================================================== */

.btn-danger{

    background:#dc2626;

    color:white;

    border:none;

    border-radius:14px;

    padding:13px 24px;

    cursor:pointer;

    font-weight:700;

    transition:.25s;

}

.btn-danger:hover{

    background:#b91c1c;

}

.btn-light{

    background:white;

    border:1px solid var(--border);

    border-radius:14px;

    padding:13px 24px;

    cursor:pointer;

}

.btn-light:hover{

    background:#f9fafb;

}

/* ==========================================================
   LOADER
========================================================== */

.loader{

    width:55px;

    height:55px;

    border:5px solid #e5e7eb;

    border-top:5px solid var(--accent);

    border-radius:50%;

    animation:spin 1s linear infinite;

}

.loader-center{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px;

}

/* ==========================================================
   BADGES
========================================================== */

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:8px 14px;

    border-radius:999px;

    font-size:.75rem;

    font-weight:700;

}

.badge-success{

    background:#dcfce7;

    color:#15803d;

}

.badge-danger{

    background:#fee2e2;

    color:#b91c1c;

}

.badge-warning{

    background:#fef3c7;

    color:#b45309;

}

.badge-info{

    background:#dbeafe;

    color:#1d4ed8;

}

/* ==========================================================
   SCROLL MODAL
========================================================== */

.users-modal-dialog::-webkit-scrollbar{

    width:10px;

}

.users-modal-dialog::-webkit-scrollbar-thumb{

    background:#d1d5db;

    border-radius:10px;

}

.users-modal-dialog::-webkit-scrollbar-thumb:hover{

    background:#9ca3af;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:768px){

    .users-modal{

        padding:15px;

    }

    .users-modal-dialog{

        width:100%;

        max-height:95vh;

    }

    .users-modal-head,

    .users-modal-body,

    .users-modal-actions{

        padding:20px;

    }

    .users-modal-actions{

        flex-direction:column;

    }

    .btn-danger,

    .btn-light,

    .btn-primary,

    .btn-secondary{

        width:100%;

    }

}

/* ==========================================================
   MODALES Y ALERTAS
========================================================== */

/* ===== Overlay ===== */

.users-modal{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:30px;

    background:rgba(17,24,39,.45);

    backdrop-filter:blur(6px);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:.25s;

    z-index:9999;

}

.users-modal.is-visible{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}

/* ===== Ventana ===== */

.users-modal-dialog{

    width:min(900px,100%);

    max-height:90vh;

    overflow:auto;

    background:white;

    border-radius:24px;

    box-shadow:
        0 30px 70px rgba(0,0,0,.20);

    animation:modalShow .25s ease;

}

@keyframes modalShow{

    from{

        opacity:0;

        transform:translateY(20px) scale(.98);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ===== Header ===== */

.users-modal-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:24px 30px;

    border-bottom:1px solid var(--border);

}

.users-modal-head h2{

    font-size:1.4rem;

    font-weight:700;

}

.modal-close-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#f3f4f6;

    cursor:pointer;

    font-size:22px;

    transition:.2s;

}

.modal-close-btn:hover{

    background:#e5e7eb;

}

/* ===== Body ===== */

.users-modal-body{

    padding:30px;

}

/* ===== Footer ===== */

.users-modal-actions{

    display:flex;

    justify-content:flex-end;

    gap:14px;

    padding:24px 30px;

    border-top:1px solid var(--border);

}

/* ==========================================================
   ALERTAS
========================================================== */

.alert{

    display:flex;

    align-items:center;

    gap:14px;

    padding:18px 20px;

    border-radius:16px;

    margin-bottom:22px;

    font-size:.95rem;

    font-weight:500;

}

.alert-success{

    background:#ecfdf3;

    border:1px solid #bbf7d0;

    color:#166534;

}

.alert-error{

    background:#fef2f2;

    border:1px solid #fecaca;

    color:#991b1b;

}

.alert-warning{

    background:#fff7ed;

    border:1px solid #fed7aa;

    color:#9a3412;

}

.alert-info{

    background:#eff6ff;

    border:1px solid #bfdbfe;

    color:#1d4ed8;

}

/* ==========================================================
   MENSAJES FLASH
========================================================== */

.flash-message{

    padding:18px 22px;

    border-radius:18px;

    margin-bottom:24px;

    font-weight:600;

    animation:fadeDown .35s;

}

.flash-success{

    background:#dcfce7;

    color:#166534;

}

.flash-danger{

    background:#fee2e2;

    color:#991b1b;

}

.flash-warning{

    background:#fef3c7;

    color:#92400e;

}

@keyframes fadeDown{

    from{

        opacity:0;

        transform:translateY(-15px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ==========================================================
   CONFIRMACIONES
========================================================== */

.confirm-user-card{

    display:flex;

    flex-direction:column;

    gap:10px;

    padding:24px;

    background:#fafafa;

    border-radius:18px;

    border:1px solid var(--border);

}

.confirm-user-card strong{

    font-size:1.1rem;

}

.confirm-user-card span{

    color:var(--text-light);

}

.confirm-user-card-danger{

    border-color:#fecaca;

    background:#fef2f2;

}

/* ==========================================================
   BOTONES MODAL
========================================================== */

.btn-danger{

    background:#dc2626;

    color:white;

    border:none;

    border-radius:14px;

    padding:13px 24px;

    cursor:pointer;

    font-weight:700;

    transition:.25s;

}

.btn-danger:hover{

    background:#b91c1c;

}

.btn-light{

    background:white;

    border:1px solid var(--border);

    border-radius:14px;

    padding:13px 24px;

    cursor:pointer;

}

.btn-light:hover{

    background:#f9fafb;

}

/* ==========================================================
   LOADER
========================================================== */

.loader{

    width:55px;

    height:55px;

    border:5px solid #e5e7eb;

    border-top:5px solid var(--accent);

    border-radius:50%;

    animation:spin 1s linear infinite;

}

.loader-center{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px;

}

/* ==========================================================
   BADGES
========================================================== */

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:8px 14px;

    border-radius:999px;

    font-size:.75rem;

    font-weight:700;

}

.badge-success{

    background:#dcfce7;

    color:#15803d;

}

.badge-danger{

    background:#fee2e2;

    color:#b91c1c;

}

.badge-warning{

    background:#fef3c7;

    color:#b45309;

}

.badge-info{

    background:#dbeafe;

    color:#1d4ed8;

}

/* ==========================================================
   SCROLL MODAL
========================================================== */

.users-modal-dialog::-webkit-scrollbar{

    width:10px;

}

.users-modal-dialog::-webkit-scrollbar-thumb{

    background:#d1d5db;

    border-radius:10px;

}

.users-modal-dialog::-webkit-scrollbar-thumb:hover{

    background:#9ca3af;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:768px){

    .users-modal{

        padding:15px;

    }

    .users-modal-dialog{

        width:100%;

        max-height:95vh;

    }

    .users-modal-head,

    .users-modal-body,

    .users-modal-actions{

        padding:20px;

    }

    .users-modal-actions{

        flex-direction:column;

    }

    .btn-danger,

    .btn-light,

    .btn-primary,

    .btn-secondary{

        width:100%;

    }

}
.header-link,
.logout-link{

    display:flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    border-radius:12px;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

}

.header-link{

    background:rgba(255,255,255,.12);

    color:#fff;

}

.header-link:hover{

    background:rgba(255,255,255,.22);

    transform:translateY(-2px);

}

.logout-link{

    background:#dc2626;

    color:#fff;

}

.logout-link:hover{

    background:#b91c1c;

    transform:translateY(-2px);

}

.header-link i,
.logout-link i{

    font-size:15px;

}

/* Fondo */

.auth-shell{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:
    linear-gradient(135deg,#0d1117,#202938,#c62828);

    padding:30px;

}

/* Tarjeta */

.auth-card{

    width:100%;

    max-width:470px;

    background:#fff;

    border-radius:24px;

    padding:40px;

    box-shadow:0 25px 60px rgba(0,0,0,.25);

}

/* Logos */

.login-brand{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:18px;

    margin-bottom:28px;

}

.logo-insight{

    height:42px;

}

.logo-ultramotor{

    height:48px;

}

.brand-x{

    font-size:28px;

    font-weight:700;

    color:#777;

}

/* Títulos */

.login-title{

    text-align:center;

    font-size:28px;

    margin-bottom:8px;

    color:#111827;

}

.login-subtitle{

    text-align:center;

    color:#6b7280;

    margin-bottom:30px;

}

/* Inputs */

.login-field{

    margin-bottom:22px;

}

.login-field label{

    display:block;

    font-weight:600;

    margin-bottom:8px;

}

.input-icon{

    display:flex;

    align-items:center;

    border:1px solid #d1d5db;

    border-radius:14px;

    overflow:hidden;

}

.input-icon i{

    width:55px;

    text-align:center;

    color:#c62828;

}

.input-icon input{

    flex:1;

    border:none;

    outline:none;

    padding:16px;

    font-size:15px;

}

/* Botón */

.login-button{

    width:100%;

    margin-top:10px;

    padding:16px;

    border:none;

    border-radius:14px;

    background:#c62828;

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.login-button:hover{

    background:#a81f1f;

}

/* Footer */

.login-footer{

    margin-top:30px;

    text-align:center;

    color:#888;

    font-size:.9rem;

}