/* =========================================================
   UPAWEB - PANEL CLIENTES
   Estilo visual nueva web
   ========================================================= */

:root {
    --upa-bg: #031322;
    --upa-bg-2: #061b2e;
    --upa-panel: #071f36;
    --upa-panel-2: #082b48;
    --upa-panel-3: #0a3152;

    --upa-blue: #087fe8;
    --upa-blue-2: #0b64cf;
    --upa-blue-light: #58b4ff;

    --upa-text: #f7fbff;
    --upa-muted: #9fb5c8;

    --upa-line: rgba(126, 188, 237, .18);
    --upa-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}


/* =========================================================
   GENERAL
   ========================================================= */

html,
body {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(8,127,232,.10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            var(--upa-bg),
            var(--upa-bg-2)
        ) !important;

    color: var(--upa-text) !important;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif !important;
}

a {
    text-decoration: none;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background:
        linear-gradient(
            180deg,
            #041b2e 0%,
            #031523 100%
        ) !important;

    color: #fff !important;

    border-right:
        1px solid var(--upa-line) !important;

    box-shadow:
        10px 0 34px rgba(0,0,0,.16) !important;
}

.brand {
    border-bottom:
        1px solid var(--upa-line) !important;
}

.brand img {
    max-width: 190px;
    filter:
        drop-shadow(
            0 8px 18px rgba(0,0,0,.22)
        );
}


/* =========================================================
   TITULOS DEL MENU
   ========================================================= */

.nav-section {
    color: #6385a1 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}


/* =========================================================
   LINKS DEL MENU
   ========================================================= */

.nav a {
    color: #cfe0ed !important;

    border:
        1px solid transparent !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease !important;
}

.nav a:hover,
.nav a.active {

    color: #fff !important;

    background:
        linear-gradient(
            90deg,
            rgba(8,127,232,.26),
            rgba(8,127,232,.07)
        ) !important;

    border-color:
        rgba(54,157,244,.24) !important;

    transform:
        translateX(2px);
}


/* =========================================================
   CERRAR SESION
   ========================================================= */

.logout {
    border-top:
        1px solid var(--upa-line) !important;
}

.logout button {
    color: #ff9d9d !important;
}

.logout button:hover {
    background:
        rgba(255,80,80,.07) !important;
}


/* =========================================================
   AREA PRINCIPAL
   ========================================================= */

.main {
    background:
        transparent !important;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {

    background:
        rgba(4,24,40,.95) !important;

    border-bottom:
        1px solid var(--upa-line) !important;

    box-shadow:
        0 5px 24px rgba(0,0,0,.14) !important;

    backdrop-filter:
        blur(14px);
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.search,
.topbar input {

    background:
        #08243d !important;

    border:
        1px solid #194465 !important;

    color:
        #d9e9f5 !important;

    border-radius:
        7px !important;
}

.search::placeholder,
.topbar input::placeholder {
    color:
        #7997ae !important;
}


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

.userbox {
    color:
        #fff !important;
}

.userbox small {
    color:
        #87a2b8 !important;
}

.avatar {

    background:
        linear-gradient(
            145deg,
            var(--upa-blue-2),
            var(--upa-blue)
        ) !important;

    border:
        1px solid #3398ef !important;

    box-shadow:
        0 8px 18px rgba(0,80,160,.22) !important;
}


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

.content {
    background:
        transparent !important;
}


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

.hero {

    background:
        linear-gradient(
            100deg,
            rgba(6,34,57,.98),
            rgba(8,52,87,.94)
        ) !important;

    border:
        1px solid var(--upa-line) !important;

    color:
        #fff !important;

    box-shadow:
        var(--upa-shadow) !important;
}

.hero h1,
.hero h2,
.hero h3 {

    color:
        #fff !important;
}

.hero p {

    color:
        var(--upa-muted) !important;
}


/* =========================================================
   FECHA
   ========================================================= */

.date-card {

    background:
        linear-gradient(
            135deg,
            var(--upa-blue-2),
            var(--upa-blue)
        ) !important;

    color:
        #fff !important;

    border:
        1px solid #258ee9 !important;

    box-shadow:
        0 12px 28px rgba(0,82,164,.22) !important;
}


/* =========================================================
   CARDS
   ========================================================= */

.card,
.service-card,
.action {

    background:
        linear-gradient(
            180deg,
            var(--upa-panel),
            #061a2d
        ) !important;

    border:
        1px solid var(--upa-line) !important;

    color:
        #fff !important;

    box-shadow:
        var(--upa-shadow) !important;
}


/* =========================================================
   TEXTOS
   ========================================================= */

.card h1,
.card h2,
.card h3,
.card h4,
.service-card h1,
.service-card h2,
.service-card h3,
.action strong {

    color:
        #fff !important;
}

.card p,
.card span,
.service-card p,
.action small {

    color:
        var(--upa-muted);
}


/* =========================================================
   ICONOS
   ========================================================= */

.stat .icon,
.service-title .big-icon {

    background:
        linear-gradient(
            145deg,
            var(--upa-blue-2),
            var(--upa-blue)
        ) !important;

    border:
        1px solid #2998f5 !important;

    color:
        #fff !important;
}


/* =========================================================
   KPI
   ========================================================= */

.stat strong {

    color:
        #fff !important;
}

.stat span {

    color:
        var(--upa-muted) !important;
}

.kpi-mini {

    background:
        #08243d !important;

    border:
        1px solid var(--upa-line) !important;

    color:
        #dceaf5 !important;
}

.kpi-mini strong {

    color:
        #64b7ff !important;
}


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

.section-title {

    color:
        #fff !important;
}


/* =========================================================
   TABLAS
   ========================================================= */

.table,
table {

    color:
        #dceaf5;
}

.table th,
table th {

    background:
        #08243d !important;

    color:
        #8fa8bc !important;

    border-color:
        var(--upa-line) !important;
}

.table td,
table td {

    color:
        #dceaf5 !important;

    border-color:
        var(--upa-line) !important;
}


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

.badge {

    background:
        #073d65 !important;

    color:
        #71bdff !important;

    border:
        1px solid #126da9 !important;
}


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

.btn,
button.btn,
input[type="submit"] {

    background:
        linear-gradient(
            90deg,
            var(--upa-blue-2),
            var(--upa-blue)
        ) !important;

    color:
        #fff !important;

    border:
        0 !important;

    box-shadow:
        0 8px 20px rgba(0,86,173,.20);
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover {

    filter:
        brightness(1.08);
}

.btn.secondary {

    background:
        #082b48 !important;

    color:
        #8ecaff !important;

    border:
        1px solid #17649b !important;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.form-control,
.content input[type="text"],
.content input[type="email"],
.content input[type="password"],
.content input[type="number"],
.content input[type="date"],
.content select,
.content textarea {

    background:
        #08243d !important;

    color:
        #eef7ff !important;

    border:
        1px solid #194766 !important;

    border-radius:
        7px !important;
}

.form-control:focus,
.content input:focus,
.content select:focus,
.content textarea:focus {

    border-color:
        #168cf2 !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 3px rgba(8,127,232,.14) !important;
}

.form-group label,
.content label {

    color:
        #dceaf5 !important;
}


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

.content a {

    color:
        #5db5ff;
}

.content a:hover {

    color:
        #8dcbff;
}


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

.action {

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease !important;
}

.action:hover {

    transform:
        translateY(-3px);

    border-color:
        #168cf2 !important;

    box-shadow:
        0 16px 36px rgba(0,79,157,.20) !important;
}


/* =========================================================
   LOGIN
   ========================================================= */

body .page {

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(8,127,232,.14),
            transparent 30%
        );
}

.page > .card {

    background:
        linear-gradient(
            180deg,
            rgba(7,31,54,.98),
            rgba(5,25,43,.98)
        ) !important;

    border:
        1px solid rgba(126,188,237,.22) !important;

    box-shadow:
        0 30px 80px rgba(0,0,0,.40) !important;
}

.page > .card h1

    color:
        #fff !important;
}

.page > .card p {

    color:
        var(--upa-muted) !important;
}

.page > .card label {

    color:
        #d9e8f4 !important;
}

.page > .card input {

    background:
        #082b48 !important;

    border:
        1px solid #194b6e !important;

    color:
        #fff !important;
}

.page > .card button {

    background:
        linear-gradient(
            90deg,
            var(--upa-blue-2),
            var(--upa-blue)
        ) !important;

    color:
        #fff !important;
}


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

@media (max-width: 900px) {

    .app {
        grid-template-columns:
            1fr !important;
    }

    .grid,
    .actions {
        grid-template-columns:
            1fr !important;
    }

    .hero {
        flex-direction:
            column !important;

        align-items:
            flex-start !important;
    }

}
