/*====================================================
  SISTEMA DE SOLICITUDES
  Santa Patricia
=====================================================*/

:root{

    --primary:#1e3a8a;
    --primary-dark:#172554;

    --secondary:#2563eb;

    --success:#16a34a;

    --danger:#dc2626;

    --warning:#f59e0b;

    --info:#0ea5e9;

    --light:#f8fafc;

    --white:#ffffff;

    --gray:#64748b;

    --gray-light:#e2e8f0;

    --sidebar-width:260px;

    --navbar-height:72px;

    --radius:14px;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --transition:.30s;

}

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:#f1f5f9;

    color:#334155;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

/*====================================================
WRAPPER
=====================================================*/

.wrapper{

    display:flex;

    min-height:100vh;

}

/*====================================================
NAVBAR
=====================================================*/

.topbar{

    position:fixed;

    top:0;

    left:0;

    right:0;

    height:72px;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 25px;

    box-shadow:var(--shadow);

    z-index:999;

}

.topbar-left{

    display:flex;

    align-items:center;

    gap:20px;

}

.logo{

    display:flex;

    align-items:center;

    gap:20px;

}

.logo img{

    width:100px;

    height:100px;

    object-fit:contain;

}

.logo-text h5{

    margin:0;

    font-size:18px;

    font-weight:700;

    color:var(--primary);

}

.logo-text small{

    color:#64748b;

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:25px;

}

.fecha{

    display:flex;

    align-items:center;

    gap:8px;

    color:#64748b;

    font-size:14px;

}

.usuario{

    display:flex;

    align-items:center;

    gap:12px;

}

.avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:18px;

}

.usuario-info{

    display:flex;

    flex-direction:column;

}

.usuario-info span{

    font-size:12px;

    color:#94a3b8;

}

.usuario-info strong{

    color:#1e293b;

}

.btn-salir{

    padding:10px 18px;

    border-radius:10px;

    background:#ef4444;

    color:#fff;

    transition:.3s;

}

.btn-salir:hover{

    background:#dc2626;

    color:#fff;

}

.btn-sidebar{

    width:42px;

    height:42px;

    border:none;

    background:#f1f5f9;

    border-radius:10px;

    cursor:pointer;

    font-size:18px;

}

/*====================================================
SIDEBAR
=====================================================*/

.sidebar{

    width:260px;

    background:var(--primary);

    position:fixed;

    top:72px;

    left:0;

    bottom:0;

    overflow-y:auto;

    transition:.3s;

}

.sidebar-body{

    padding:20px;

}

.sidebar-footer{

    position:absolute;

    bottom:20px;

    width:100%;

    text-align:center;

    color:#cbd5e1;

    font-size:13px;

}

.menu-item{

    display:flex;

    align-items:center;

    gap:15px;

    color:#fff;

    padding:14px 18px;

    border-radius:10px;

    margin-bottom:8px;

    transition:.25s;

}

.menu-item:hover{

    background:rgba(255,255,255,.15);

}

.menu-item.active{

    background:#2563eb;

}

.menu-item i{

    width:22px;

    text-align:center;

}

.menu-group{

    margin-bottom:10px;

}

.menu-btn{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:none;

    border:none;

    color:#fff;

    padding:14px 18px;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

}

.menu-btn:hover{

    background:rgba(255,255,255,.15);

}

.menu-btn div{

    display:flex;

    gap:15px;

    align-items:center;

}

.submenu{

    display:none;

    margin-top:5px;

    padding-left:18px;

}

.submenu a{

    display:block;

    padding:12px;

    color:#dbeafe;

    border-radius:8px;

    transition:.25s;

    font-size:14px;

}

.submenu a:hover{

    background:rgba(255,255,255,.10);

    color:#fff;

}

/*====================================================
CONTENIDO
=====================================================*/

.contenido-principal{

    flex:1;

    margin-left:260px;

    margin-top:72px;

    padding:30px;

    min-height:100vh;

}

/*====================================================
=            DASHBOARD
====================================================*/

.page-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.page-title h2{

    font-size:30px;

    font-weight:700;

    color:#1e293b;

}

.page-title p{

    color:#64748b;

    margin-top:5px;

}

/*====================================================
=            CARDS
====================================================*/

.row-cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-bottom:35px;

}

.card-dashboard{

    background:#fff;

    border-radius:18px;

    padding:25px;

    position:relative;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

    cursor:pointer;

}

.card-dashboard:hover{

    transform:translateY(-8px);

}

.card-dashboard::before{

    content:"";

    position:absolute;

    width:130px;

    height:130px;

    border-radius:50%;

    top:-40px;

    right:-40px;

    opacity:.08;

    background:#000;

}

.card-dashboard.primary::before{

    background:#2563eb;

}

.card-dashboard.success::before{

    background:#22c55e;

}

.card-dashboard.warning::before{

    background:#f59e0b;

}

.card-dashboard.danger::before{

    background:#ef4444;

}

.card-icon{

    width:60px;

    height:60px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    color:#fff;

    margin-bottom:20px;

}

.bg-primary{

    background:#2563eb;

}

.bg-success{

    background:#22c55e;

}

.bg-warning{

    background:#f59e0b;

}

.bg-danger{

    background:#ef4444;

}

.card-dashboard h3{

    font-size:34px;

    margin-bottom:6px;

    color:#0f172a;

}

.card-dashboard span{

    color:#64748b;

}

.card-footer{

    margin-top:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:14px;

}

/*====================================================
=            TARJETAS GENERALES
====================================================*/

.card{

    border:none;

    border-radius:16px;

    box-shadow:var(--shadow);

    overflow:hidden;

}

.card-header{

    background:#fff;

    border-bottom:1px solid #edf2f7;

    padding:18px 22px;

    font-weight:600;

    color:#1e293b;

}

.card-body{

    padding:25px;

}

/*====================================================
=            BOTONES
====================================================*/

.btn{

    border-radius:10px;

    font-weight:500;

    transition:.30s;

}

.btn-primary{

    background:#2563eb;

    border:none;

}

.btn-primary:hover{

    background:#1d4ed8;

}

.btn-success{

    background:#16a34a;

    border:none;

}

.btn-success:hover{

    background:#15803d;

}

.btn-danger{

    border:none;

}

.btn-warning{

    color:#fff;

}

.btn-info{

    color:#fff;

}

.btn-sm{

    padding:7px 14px;

}

/*====================================================
=            FORMULARIOS
====================================================*/

.form-control{

    border-radius:10px;

    border:1px solid #cbd5e1;

    min-height:45px;

}

.form-control:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 .20rem rgba(37,99,235,.15);

}

.form-select{

    border-radius:10px;

    min-height:45px;

}

label{

    font-weight:600;

    color:#334155;

    margin-bottom:6px;

}

.form-section{

    background:#fff;

    border-radius:18px;

    padding:25px;

    margin-bottom:25px;

    box-shadow:var(--shadow);

}

.form-section h5{

    margin-bottom:25px;

    color:#1e3a8a;

}

/*====================================================
=            TABLAS
====================================================*/

.table{

    margin-bottom:0;

}

.table thead{

    background:#1e3a8a;

    color:#fff;

}

.table thead th{

    border:none;

    padding:14px;

    font-size:14px;

}

.table tbody td{

    vertical-align:middle;

    padding:14px;

}

.table tbody tr:hover{

    background:#f8fafc;

}

/*====================================================
=            BADGES
====================================================*/

.badge{

    padding:8px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

.badge-success{

    background:#dcfce7;

    color:#15803d;

}

.badge-danger{

    background:#fee2e2;

    color:#b91c1c;

}

.badge-warning{

    background:#fef3c7;

    color:#b45309;

}

.badge-primary{

    background:#dbeafe;

    color:#1d4ed8;

}

/*====================================================
=            ALERTAS
====================================================*/

.alert{

    border:none;

    border-radius:12px;

    padding:18px;

}

.alert-success{

    background:#dcfce7;

    color:#166534;

}

.alert-danger{

    background:#fee2e2;

    color:#991b1b;

}

.alert-warning{

    background:#fef3c7;

    color:#92400e;

}

.alert-info{

    background:#e0f2fe;

    color:#0369a1;

}

/*====================================================
=            PAGINAS
====================================================*/

.page-content{

    background:#fff;

    border-radius:18px;

    padding:30px;

    box-shadow:var(--shadow);

}

/*====================================================
=            LOGIN
====================================================*/

.login-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#1e3a8a,#2563eb);

}

.login-card{

    width:430px;

    background:#fff;

    border-radius:20px;

    padding:40px;

    box-shadow:0 25px 50px rgba(0,0,0,.20);

}

.login-logo{

    text-align:center;

    margin-bottom:30px;

}

.login-logo img{

    width:90px;

    margin-bottom:15px;

}

.login-logo h3{

    color:#1e3a8a;

    font-weight:700;

}

.login-card .form-control{

    margin-bottom:18px;

}

.login-card .btn{

    width:100%;

    height:48px;

}

/*====================================================
=            FOOTER
====================================================*/

.footer{

    margin-top:35px;

    text-align:center;

    color:#64748b;

    font-size:14px;

}

.footer strong{

    color:#1e3a8a;

}

/*====================================================
=            DATA TABLES
====================================================*/

.dataTables_wrapper{

    padding-top:15px;

}

.dataTables_filter input{

    border-radius:10px !important;

    border:1px solid #cbd5e1 !important;

    padding:8px 12px !important;

}

.dataTables_length select{

    border-radius:10px;

}

.dataTables_paginate .paginate_button{

    border-radius:8px !important;

}

.dataTables_paginate .current{

    background:#2563eb !important;

    color:#fff !important;

    border:none !important;

}

/*====================================================
=            SCROLL BAR
====================================================*/

::-webkit-scrollbar{

    width:10px;

    height:10px;

}

::-webkit-scrollbar-track{

    background:#e2e8f0;

}

::-webkit-scrollbar-thumb{

    background:#94a3b8;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#64748b;

}

/*====================================================
=            ANIMACIONES
====================================================*/

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.fade{

    animation:fadeIn .5s ease;

}

.card-dashboard{

    animation:fadeIn .6s ease;

}

/*====================================================
=            UTILIDADES
====================================================*/

.text-primary{

    color:#2563eb !important;

}

.text-success{

    color:#16a34a !important;

}

.text-danger{

    color:#dc2626 !important;

}

.text-warning{

    color:#f59e0b !important;

}

.shadow{

    box-shadow:var(--shadow) !important;

}

.rounded{

    border-radius:16px !important;

}

.bg-white{

    background:#fff;

}

.bg-light{

    background:#f8fafc;

}

/*====================================================
=            SIDEBAR COLAPSADO
====================================================*/

.sidebar.collapsed{

    width:80px;

}

.sidebar.collapsed .menu-item span,

.sidebar.collapsed .menu-btn span,

.sidebar.collapsed .sidebar-footer,

.sidebar.collapsed .submenu{

    display:none;

}

.sidebar.collapsed .menu-item{

    justify-content:center;

}

.sidebar.collapsed .menu-btn{

    justify-content:center;

}

.sidebar.collapsed .menu-btn div{

    justify-content:center;

}

.contenido-principal.expandido{

    margin-left:80px;

}

/*====================================================
=            RESPONSIVE
====================================================*/

@media(max-width:992px){

    .sidebar{

        width:260px;
        left:-260px;
        z-index:1000;
        transition:.30s;

    }

    .sidebar.show{

        left:0;

    }

    .contenido-principal{

        margin-left:0;
        padding:20px;

    }

    .topbar{

        padding:0 15px;

    }

    .logo-text{

        display:none;

    }

    .topbar-right{

        gap:12px;

    }

    .usuario-info{

        display:none;

    }

}



@media(max-width:768px){

.page-title{

    flex-direction:column;

    align-items:flex-start;

    gap:10px;

}

.row-cards{

    grid-template-columns:1fr;

}

.login-card{

    width:95%;

    padding:30px;

}

}

@media(max-width:576px){

.topbar{

    height:65px;

}

.contenido-principal{

    margin-top:65px;

}

.card-dashboard{

    padding:18px;

}

.card-dashboard h3{

    font-size:26px;

}

}

/*====================================================
=            MODO OSCURO (PREPARADO)
====================================================*/

.dark{

    --light:#0f172a;

    --white:#1e293b;

    background:#0f172a;

}

.dark .card,

.dark .card-dashboard,

.dark .page-content,

.dark .topbar{

    background:#1e293b;

    color:#fff;

}

.dark .table{

    color:#fff;

}

.dark .form-control,

.dark .form-select{

    background:#334155;

    color:#fff;

    border-color:#475569;

}

/*====================================================
=            FIN DEL CSS
====================================================*/

/*====================================================
=                 LOGIN
====================================================*/

.login-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px;

    background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 100%);

}

.login-card{

    width:100%;
    max-width:430px;

    background:#fff;

    border-radius:20px;

    padding:40px;

    box-shadow:0 25px 60px rgba(0,0,0,.18);

    animation:fadeIn .5s ease;

}

.login-logo{

    text-align:center;

    margin-bottom:30px;

}

.login-logo img{

    width:110px;

    height:auto;

    margin-bottom:18px;

}

.login-logo h3{

    font-size:28px;

    font-weight:700;

    color:#1e3a8a;

    margin-bottom:5px;

}

.login-logo p{

    color:#64748b;

    margin-bottom:0;

}

.login-card .form-label{

    font-weight:600;

    color:#334155;

}

.login-card .form-control{

    height:48px;

    border-radius:12px;

    border:1px solid #cbd5e1;

}

.login-card .form-control:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 .18rem rgba(37,99,235,.15);

}

.login-card .input-group-text{

    background:#fff;

    border-radius:0 12px 12px 0;

    cursor:pointer;

}

.btn-login{

    width:100%;

    height:50px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:16px;

    font-weight:600;

    transition:.30s;

}

.btn-login:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.btn-login:disabled{

    background:#94a3b8;

    cursor:not-allowed;

}

.login-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:20px 0;

    font-size:14px;

}

.login-options a{

    color:#2563eb;

    text-decoration:none;

}

.login-options a:hover{

    text-decoration:underline;

}

.footer-login{

    text-align:center;

    margin-top:30px;

    color:#94a3b8;

    font-size:13px;

}

.footer-login strong{

    color:#1e3a8a;

}

.alert{

    border-radius:12px;

}

/*====================================================
=            RESPONSIVE LOGIN
====================================================*/

@media(max-width:576px){

.login-card{

    padding:30px 25px;

}

.login-logo img{

    width:90px;

}

.login-logo h3{

    font-size:22px;

}

}

.menu-group .submenu{
    display:none;
}

.menu-group.active .submenu{
    display:block;
}

.menu-btn{
    width:100%;
    border:none;
    background:none;
    cursor:pointer;
}

/* BUSCADOR DATATABLE */
.dataTables_filter{
    text-align:right !important;
    margin-bottom:15px;
}

.dataTables_filter label{
    font-weight:600;
}

.dataTables_filter input{
    width:260px !important;
    margin-left:8px !important;
    border-radius:8px;
}

/* PAGINACIÓN */
.dataTables_paginate{
    text-align:right !important;
}

.dataTables_info{
    padding-top:12px;
}

.dataTables_filter{
    margin-bottom:8px;
}

.dataTables_filter label{
    font-weight:600;
    color:#1f2937;
}

.dataTables_filter input{

    width:250px !important;

    height:36px;

    border-radius:8px;

    margin-left:8px;

}

.dataTables_wrapper .row{

    margin-top:5px;

    margin-bottom:5px;

}

.dataTables_info{

    padding-top:10px;

}

/* Barra superior */
.dt-buttons{
    margin-bottom:0 !important;
}

.dataTables_filter{
    margin-bottom:0 !important;
}

.dataTables_filter label{
    font-weight:600;
    margin-bottom:0;
}

.dataTables_filter input{

    width:240px !important;
    height:36px;
    border-radius:8px;
    margin-left:8px;

}

/* Barra inferior */

.dataTables_length{
    margin-bottom:0;
}

.dataTables_info{
    padding-top:8px !important;
    font-size:14px;
}

.dataTables_paginate{
    margin-top:0 !important;
}

/* Reduce espacios */

.dataTables_wrapper .row{

    margin-top:6px !important;
    margin-bottom:6px !important;

}

/*=========================================
SIDEBAR COLAPSADO
=========================================*/

.sidebar.collapsed{

    width:80px;

}

.sidebar.collapsed span,

.sidebar.collapsed small,

.sidebar.collapsed .menu-btn i.fa-chevron-down{

    display:none;

}

.sidebar.collapsed .menu-btn{

    justify-content:center;

}

.sidebar.collapsed .menu-btn div{

    justify-content:center;

}

.sidebar.collapsed .menu-item{

    justify-content:center;

}

.sidebar.collapsed .submenu{

    display:none !important;

}

/*=========================================
CONTENIDO
=========================================*/

.contenido-principal{

    margin-left:260px;

    transition:.3s;

}

.logos-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.logos-login img {
    max-width: 290px;
    max-height: 70px;
    object-fit: contain;
}

