/* =====================================================
   KAPDORA UI 2.0
   Diseño oficial
====================================================== */

/* ==========================
   PALETA OFICIAL
========================== */

:root{

    --kp-primary:#2563EB;
    --kp-primary-hover:#1D4ED8;

    --kp-turquoise:#14B8A6;

    --kp-success:#22C55E;

    --kp-indigo:#4F46E5;

    --kp-dark:#111827;

    --kp-light:#F8FAFC;

    --kp-danger:#EF4444;

    --kp-warning:#F59E0B;

    --kp-border:#E5E7EB;

    --kp-text:#111827;

    --kp-muted:#6B7280;

    --kp-radius:18px;

}


/* ==========================
   GENERAL
========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

    font-family:"Inter",sans-serif;

}




/* ==========================
   LINKS
========================== */

a{

    text-decoration:none;

}


/* ==========================
   NAVBAR
========================== */

.navbar{

    height:72px;

    background:#fff!important;

    border-bottom:1px solid #E5E7EB;

    box-shadow:0 2px 12px rgba(15,23,42,.04);

}

.navbar h3{

    font-size:34px;

    font-weight:800;

    color:#111827;

}

.dropdown-menu{

    border-radius:16px;

    border:none;

    overflow:hidden;

}

.dropdown-item{

    padding:.75rem 1.2rem;

    transition:.2s;

}

.dropdown-item:hover{

    background:#F3F4F6;

    padding-left:1.5rem;

}

/* =====================================================
   SIDEBAR KAPDORA 2.1
===================================================== */

.sidebar{

    width:300px;

    min-height:100vh;

    background:linear-gradient(
    180deg,
    #111827 0%,
    #1b2435 100%);

    display:flex;

    flex-direction:column;

    box-shadow:8px 0 30px rgba(0,0,0,.08);

}

/* ==========================
   LOGO
========================== */

.sidebar-logo{

    padding:20px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.06);

}

.sidebar-logo img{

    width:165px;

    max-width:100%;

    transition:.30s;

}

.sidebar-logo img:hover{

    transform:scale(1.03);

}

/* ==========================
   MEN
========================== */

.sidebar-menu{

    padding:10px 14px;

    flex:1;

}

.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:16px;

    color:#D6DBE4;

    padding:14px 18px;

    margin-bottom:8px;

    border-radius:14px;

    transition:all .25s ease;

    font-size:16px;

    font-weight:600;

}

.sidebar-menu a i{

    width:26px;

    font-size:19px;

    text-align:center;

}

.sidebar-menu a:hover{

    background:rgba(37,99,235,.15);

    color:#FFFFFF;

    transform:translateX(6px);

}

.sidebar-menu a.active{

    color:#FFFFFF;

    background:linear-gradient(
        135deg,
        #2563EB 0%,
        #3B82F6 55%,
        #4F46E5 100%
    );

    box-shadow:0 6px 16px rgba(37,99,235,.22);

}

/* ==========================
   FOOTER
========================== */

.sidebar-footer{

    margin-top:auto;

    padding:18px;

    text-align:center;

    color:#7d8796;

    border-top:1px solid rgba(255,255,255,.06);

    font-size:13px;

}


/* ==========================
   TITULOS
========================== */

h1,h2,h3,h4,h5{

    color:var(--kp-text);

    font-weight:700;

}


/* ==========================
   TARJETAS
========================== */

.card{

    border:none;

    border-radius:18px;

    background:#fff;

    box-shadow:0 8px 24px rgba(15,23,42,.06);

    transition:.25s;

}

.card:hover{

    transform:translateY(-2px);

    box-shadow:0 16px 32px rgba(15,23,42,.08);

}

.card-header{

    background:#fff;

    border-bottom:1px solid var(--kp-border);

    font-weight:700;

}


/* ==========================
   BOTONES
========================== */

.btn{

    border-radius:12px;

    padding:.65rem 1.2rem;

    font-weight:600;

    transition:.2s;

}

.btn-primary{

    background:var(--kp-primary);

    border-color:var(--kp-primary);

}

.btn-primary:hover{

    background:var(--kp-primary-hover);

    border-color:var(--kp-primary-hover);

}

.btn-success{

    background:var(--kp-success);

    border:none;

}

.btn-danger{

    border:none;

}


/* ==========================
   FORMULARIOS
========================== */

.form-control,
.form-select{

    border-radius:12px;

    border:1px solid var(--kp-border);

    padding:.75rem;

}

.form-control:focus,
.form-select:focus{

    border-color:var(--kp-primary);

    box-shadow:0 0 0 .2rem rgba(37,99,235,.15);

}


/* ==========================
   TABLAS
========================== */

.table{

    margin-bottom:0;

}

.table thead{

    background:#F9FAFB;

}

.table thead th{

    border-bottom:1px solid var(--kp-border);

    font-weight:700;

}

.table td{

    vertical-align:middle;

}


/* ==========================
   ALERTAS
========================== */

.alert{

    border:none;

    border-radius:14px;

}


/* ==========================
   BADGES
========================== */

.badge{

    border-radius:30px;

    padding:.5rem .8rem;

}


/* ==========================
   ICONOS CIRCULARES
========================== */

.icon-circle{

    width:70px;

    height:70px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

}


/* ==========================
   SCROLL
========================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#CBD5E1;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#94A3B8;

}

/* =====================================================
   BOTN NOTIFICACIONES
=====================================================*/

.btn-notification{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:0;

    border:none;

    background:transparent;

    color:#6B7280;

    border-radius:12px;

    transition:all .25s ease;

}

.btn-notification i{

    font-size:19px;

    line-height:1;

}

.btn-notification:hover{

    background:#F3F4F6;

    color:var(--kp-primary);

}

/*====================================================
KAPDORA KPI CARDS
====================================================*/

.kp-stat-card{

    background:#fff;

    border-radius:22px;

    padding:26px;

    border:1px solid #EEF2F7;

    box-shadow:0 12px 35px rgba(15,23,42,.05);

    transition:.30s;

    position:relative;

    overflow:hidden;

}

.kp-stat-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:4px;

    background:linear-gradient(
        90deg,
        var(--kp-primary),
        var(--kp-turquoise)
    );

}

.kp-stat-card:hover{

    transform:translateY(-6px);

    box-shadow:0 22px 40px rgba(15,23,42,.10);

}

.kp-stat-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.kp-stat-title{

    color:#6B7280;

    font-size:15px;

    font-weight:600;

}

.kp-stat-value{

    margin-top:10px;

    font-size:25px;

    font-weight:600;

    color:#111827;

    line-height:1;

}

.kp-stat-description{

    margin-top:10px;

    color:#22C55E;

    font-size:15px;

    font-weight:600;

}

.kp-stat-icon{

    width:72px;

    height:72px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

}

.kp-stat-icon i{

    font-size:34px;

}

/*=====================================================
MIS CUENTAS
=====================================================*/

.kp-account-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

    border-bottom:1px solid #EEF2F7;

    transition:.25s;

}

.kp-account-row:last-child{

    border-bottom:none;

}

.kp-account-row:hover{

    transform:translateX(6px);

}

.kp-account-left{

    display:flex;

    align-items:center;

    gap:16px;

}

.kp-account-icon{

    width:52px;

    height:52px;

    border-radius:16px;

    background:rgba(37,99,235,.08);

    color:var(--kp-primary);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

}

.kp-account-name{

    font-size:16px;

    font-weight:700;

    color:#111827;

}

.kp-account-type{

    font-size:13px;

    color:#6B7280;

    margin-top:2px;

}

.kp-account-balance{

    font-size:22px;

    font-weight:700;

    color:#111827;

}

/*=========================================
CHART CARD
=========================================*/

.kp-chart-card{

    border-radius:22px;

}

.kp-chart-card .card-body{

    padding:32px;

}

.kp-chart-card h4{

    font-size:26px;

}

.kp-chart-card select{

    border-radius:12px;

    border:1px solid #E5E7EB;

}