
/* ==========================================
   EN BOMBAS | PANEL PRIVADO
   ========================================== */

[hidden] {
    display: none !important;
}

.private-main {
    min-height: calc(100vh - 160px);
    padding: 65px 7% 100px;
    color: #ffffff;
    background:
        radial-gradient(
            ellipse at 85% 5%,
            rgba(245, 196, 0, 0.07),
            transparent 40%
        ),
        #111216;
}

/* ==========================================
   PANTALLA DE INICIO DE SESIÓN
   ========================================== */

.private-login {
    max-width: 650px;
    margin: 45px auto;
    animation: privateFadeUp 0.7s ease both;
}

.private-login h1,
.private-heading h1 {
    font-size: clamp(48px, 7vw, 90px);
    line-height: 0.95;
    letter-spacing: -2px;
    margin: 25px 0;
}

.private-login h1 span,
.private-heading h1 span {
    color: #f5c400;
}

.private-login > p,
.private-heading p {
    color: #a4a4aa;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 30px;
}

.private-login .login-card {
    max-width: 100%;
    margin-top: 35px;
}

#mensajeLoginPrivado,
#mensajeTarifa {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   ENCABEZADO DEL PANEL
   ========================================== */

.private-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    animation: privateFadeUp 0.6s ease both;
}

.private-logout {
    background: transparent;
    border: 1px solid #45454b;
    color: #e4e4e7;
    padding: 14px 20px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
}

.private-logout:hover {
    border-color: #f5c400;
    color: #f5c400;
    transform: translateY(-2px);
}

/* ==========================================
   TARJETAS DE ESTADÍSTICAS
   ========================================== */

.private-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.private-stat {
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #303137;
    background: #1b1c21;
    transition: 0.3s ease;
}

.private-stat:hover {
    border-color: rgba(245, 196, 0, 0.45);
    transform: translateY(-3px);
}

.private-stat span {
    display: block;
    font-size: 11px;
    color: #a4a4aa;
    letter-spacing: 1.3px;
    margin-bottom: 16px;
}

.private-stat strong {
    display: block;
    font-size: clamp(34px, 5vw, 52px);
    color: #f5c400;
    line-height: 1;
}

/* ==========================================
   TARJETAS ADMINISTRATIVAS
   ========================================== */

.private-card {
    background: #1b1c21;
    border: 1px solid #303137;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 25px;
    animation: privateFadeUp 0.7s ease both;
}

.private-card h2 {
    font-size: 25px;
    color: #ffffff;
    margin-bottom: 12px;
}

.private-card > p {
    color: #a4a4aa;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ==========================================
   FORMULARIO DE TARIFAS
   ========================================== */

.private-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.private-card .login-field {
    min-width: 0;
}

.private-card .login-field label {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    color: #bcbcc2;
    margin-bottom: 10px;
}

.private-card .login-field input,
.private-search {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 15px;
    border-radius: 9px;
    border: 1px solid #3a3b42;
    background: #121318;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.25s ease;
    box-sizing: border-box;
}

.private-card .login-field input:focus,
.private-search:focus {
    border-color: #f5c400;
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.1);
}

.private-card input::placeholder {
    color: #777780;
}

#guardarTarifa {
    cursor: pointer;
}

#guardarTarifa:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   BUSCADOR
   ========================================== */

.private-search {
    margin-bottom: 25px;
    max-width: 500px;
}

/* ==========================================
   TABLA DE RECORRIDOS
   ========================================== */

.private-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #34353b;
    border-radius: 11px;
}

.private-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 620px;
}

.private-table thead {
    background: #25262c;
}

.private-table th {
    padding: 18px;
    color: #bcbcc2;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
}

.private-table td {
    padding: 18px;
    color: #e5e5e8;
    font-size: 14px;
    border-top: 1px solid #34353b;
}

.private-table tbody tr {
    transition: background 0.2s ease;
}

.private-table tbody tr:hover {
    background: #25262b;
}

.private-table td:nth-child(3) {
    color: #f5c400;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================
   BOTONES DE ACCIONES
   ========================================== */

.private-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.private-edit,
.private-delete {
    padding: 9px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.private-edit {
    background: rgba(245, 196, 0, 0.12);
    color: #f5c400;
    border: 1px solid rgba(245, 196, 0, 0.35);
}

.private-edit:hover {
    background: #f5c400;
    color: #171717;
}

.private-delete {
    background: rgba(255, 90, 90, 0.08);
    color: #ff8585;
    border: 1px solid rgba(255, 90, 90, 0.3);
}

.private-delete:hover {
    background: #ff8585;
    color: #171717;
}

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes privateFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   DISEÑO RESPONSIVE
   ========================================== */

@media (max-width: 900px) {

    .private-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .private-heading {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .private-main {
        padding: 45px 5% 75px;
    }

    .private-login {
        margin: 20px auto;
    }

    .private-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .private-stat {
        padding: 24px;
    }

    .private-card {
        padding: 22px 17px;
    }

    .private-form-grid {
        grid-template-columns: 1fr;
    }

    .private-heading h1,
    .private-login h1 {
        font-size: clamp(44px, 12vw, 65px);
    }

    .private-logout {
        width: 100%;
    }

    #guardarTarifa {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .private-login,
    .private-heading,
    .private-card {
        animation: none;
    }

    .private-stat,
    .private-logout {
        transition: none;
    }
}


/* ==========================================
   PANEL PRIVADO | TARJETAS UNIFICADAS
   ========================================== */

.private-card,
.private-stat,
.private-login .login-card {
    background:
        radial-gradient(
            ellipse at 18% 15%,
            rgba(32, 208, 208, 0.09),
            transparent 60%
        ),
        #1b1c21;

    border: 1px solid rgba(32, 208, 208, 0.24);
    border-radius: 16px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.private-card:hover,
.private-stat:hover {
    border-color: rgba(32, 208, 208, 0.42);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.22),
        0 0 25px rgba(32, 208, 208, 0.055);
}


/* ==========================================
   EN BOMBAS | PRIVADO - COLOR DEFINITIVO
   ========================================== */

:root {
    --privado-color: #20d0d0;
    --privado-hover: #65f0ec;
}

/* TÍTULOS Y TEXTOS */

body .private-main h1 span,
body .private-main .tag,
body .private-main .private-stat strong,
body .private-main .private-table td:nth-child(3) {
    color: var(--privado-color) !important;
}

/* BOTONES */

body .private-main .main-button,
body .private-main #guardarTarifa,
body .private-main #botonLoginPrivado {
    background: var(--privado-color) !important;
    border-color: var(--privado-color) !important;
    color: #101418 !important;
}

body .private-main .main-button:hover {
    background: var(--privado-hover) !important;
    border-color: var(--privado-hover) !important;
}

/* ACCIONES Y BORDES */

body .private-main .private-edit {
    color: var(--privado-color) !important;
    border-color: rgba(32,208,208,0.4) !important;
}

body .private-main .private-edit:hover {
    background: var(--privado-color) !important;
    color: #101418 !important;
}

body .private-main input:focus {
    border-color: var(--privado-color) !important;
    box-shadow: 0 0 0 3px rgba(32,208,208,0.12) !important;
}


/* ==========================================
   TARJETAS CON EFECTO TURQUESA
   ========================================== */

body .private-main .private-card,
body .private-main .private-stat,
body .private-main .login-card {
    position: relative;

    background:
        radial-gradient(
            ellipse at 18% 15%,
            rgba(32,208,208,0.10),
            transparent 60%
        ),
        #1b1c21 !important;

    border: 1px solid rgba(32,208,208,0.25) !important;
    border-radius: 16px !important;

    box-shadow:
        0 12px 40px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.025) !important;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

body .private-main .private-card:hover,
body .private-main .private-stat:hover {
    border-color: rgba(32,208,208,0.5) !important;

    box-shadow:
        0 15px 45px rgba(0,0,0,0.22),
        0 0 30px rgba(32,208,208,0.08) !important;
}


/* OJITO DEL LOGIN */

body .private-main .password-wrapper {
    position: relative;
    width: 100%;
}

body .private-main .password-wrapper input {
    width: 100%;
    padding-right: 55px !important;
    box-sizing: border-box;
}

body .private-main .password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a6a6ae;
    cursor: pointer;
    transition: color 0.25s, background 0.25s;
}

body .private-main .password-toggle:hover {
    color: #20d0d0;
    background: rgba(32,208,208,0.09);
}

body .private-main .password-toggle:focus-visible {
    outline: 2px solid #20d0d0;
    outline-offset: 2px;
}


/* ==========================================
   EN BOMBAS | BOTONES PRIVADOS TURQUESA
   ========================================== */

/* BOTÓN EDITAR */

.private-edit,
.private-edit:hover,
.private-edit:focus-visible {
    color: #20cbd0 !important;
    border-color: rgba(32, 203, 208, 0.4) !important;
    background: rgba(32, 203, 208, 0.10) !important;
}

.private-edit:hover {
    background: #20cbd0 !important;
    color: #101418 !important;
    border-color: #20cbd0 !important;
    box-shadow: 0 0 18px rgba(32, 203, 208, 0.22);
    transform: translateY(-2px);
}

/* BOTÓN CERRAR SESIÓN */

.private-logout,
.private-logout:hover,
.private-logout:focus-visible {
    border-color: rgba(32, 203, 208, 0.25) !important;
    background: transparent !important;
    color: #e5e5e5 !important;
}

.private-logout:hover {
    border-color: #20cbd0 !important;
    background: rgba(32, 203, 208, 0.10) !important;
    color: #20cbd0 !important;
    box-shadow: 0 0 18px rgba(32, 203, 208, 0.12);
    transform: translateY(-2px);
}


/* ==========================================
   EN BOMBAS | OJITO ANIMADO
   ========================================== */

.password-toggle {
    color: #999da6;
    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.password-toggle svg {
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* AL PASAR EL CURSOR */

.password-toggle:hover {
    color: #20cbd0 !important;
    background: rgba(32, 203, 208, 0.08) !important;
}

.password-toggle:hover svg {
    transform: scale(1.12);
}

/* AL PRESIONAR */

.password-toggle:active svg {
    transform: scale(0.75);
}

/* CONTRASEÑA VISIBLE */

.password-toggle[aria-pressed="true"] {
    color: #20cbd0 !important;
}

/* PEQUEÑA ANIMACIÓN AL CAMBIAR */

.password-toggle[aria-pressed="true"] svg {
    animation: ojoPrivado 0.3s ease;
}

@keyframes ojoPrivado {
    0% {
        opacity: 0.5;
        transform: scale(0.75);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .password-toggle svg,
    .password-toggle[aria-pressed="true"] svg {
        animation: none;
        transition: none;
    }
}
