body{
    background:#f1f5f9;
    font-family:'Segoe UI', sans-serif;
}



/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/



.sidebar h4{
    font-weight:bold;
    letter-spacing:1px;
}





/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
*/

.card{
    border:none;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
    transition:.2s;
}

.card:hover{
    transform:translateY(-3px);
}



/*
|--------------------------------------------------------------------------
| TABLES
|--------------------------------------------------------------------------
*/

table{
    border-radius:12px;
    overflow:hidden;
}

table th{
    background:#0f172a !important;
    color:#FFFFFF !important;;
}



/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.btn-primary{
    background:#2563eb;
    border:none;
    border-radius:10px;
    padding:10px 18px;
}

.btn-primary:hover{
    background:#1d4ed8;
}



/*
|--------------------------------------------------------------------------
| FORMS
|--------------------------------------------------------------------------
*/

input,
textarea,
select{
    border-radius:10px !important;
    border:1px solid #dbeafe !important;
    padding:10px !important;
}

input:focus,
textarea:focus,
select:focus{
    outline:none !important;
    border-color:#2563eb !important;
    box-shadow:0 0 0 3px rgba(37,99,235,.15) !important;
}


/*
|--------------------------------------------------------------------------
| MODERN TABLES
|--------------------------------------------------------------------------
*/

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:white;
    overflow:hidden;
    border-radius:16px;
}

table thead th{
    background:#0f172a !important;
    color:white;
    font-weight:600;
    padding:16px !important;
    border:none !important;
}

table tbody td{
    padding:16px !important;
    border-bottom:1px solid #f1f5f9 !important;
    vertical-align:middle;
}

table tbody tr{
    transition:.15s;
}

table tbody tr:hover{
    background:#f8fafc;
}



/*
|--------------------------------------------------------------------------
| ACTION BUTTONS
|--------------------------------------------------------------------------
*/

.action-btn{

    width:32px;

    height:32px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    border-radius:8px;

    transition:all .18s ease;

    font-size:15px;

    background:transparent;

    border:none;

}



.action-btn:hover{

    transform:translateY(-2px);

    color:white;

}



/* VER */

.btn-view{
    color:#64748b;
}

.btn-view:hover{
    color:#334155;
    background:#f1f5f9;
}



/* EDITAR */

.btn-edit{
    color:#2563eb;
}

.btn-edit:hover{
    background:#dbeafe;
}



/* PDF */

.btn-pdf{
    color:#dc2626;
}

.btn-pdf:hover{
    background:#fee2e2;
}



/* ENVIAR */

.btn-mail{
    color:#059669;
}

.btn-mail:hover{
    background:#dcfce7;
}



/* DUPLICAR */

.btn-duplicate{
    color:#d97706;
}

.btn-duplicate:hover{
    background:#fef3c7;
}



/* ELIMINAR */

.btn-delete{
    color:#111827;
}

.btn-delete:hover{
    background:#e5e7eb;
}

/*
|--------------------------------------------------------------------------
| TOPBAR
|--------------------------------------------------------------------------
*/





/*
|--------------------------------------------------------------------------
| GLASS CARD
|--------------------------------------------------------------------------
*/

.glass-card{
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(12px);

    border-radius:20px;

    box-shadow:0 8px 30px rgba(0,0,0,.05);
}



/*
|--------------------------------------------------------------------------
| PAGE TITLE
|--------------------------------------------------------------------------
*/

.page-title{
    font-size:28px;
    font-weight:700;
    margin:0;
}



/*
|--------------------------------------------------------------------------
| BADGE
|--------------------------------------------------------------------------
*/

.status-badge{
    background:#dbeafe;
    color:#1d4ed8;

    padding:8px 14px;

    border-radius:999px;

    font-size:14px;
    font-weight:600;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }



    .menu-toggle {
        display: block;
    }

    .topbar-title small {
        display: none;
    }

    .topbar {
        padding: 0 15px;
        width: 100%;
    }

    .page-content {
        padding: 15px !important;
        width: 100%;
    }

}


@media(max-width:768px){

    .page-title{
        font-size:22px;
    }

    .sidebar h3{
        font-size:22px;
    }

    .action-btn{
        display:block;
        margin-bottom:8px;
        text-align:center;
    }

    table thead{
        display:none;
    }

    table,
    table tbody,
    table tr,
    table td{
        display:block;
        width:100%;
    }

    table tr{
        margin-bottom:15px;
        background:white;
        border-radius:16px;
        overflow:hidden;
        box-shadow:0 5px 15px rgba(0,0,0,.05);
    }

    table td{
        border:none !important;
        border-bottom:1px solid #f1f5f9 !important;
    }

}


.sidebar-footer{

    margin-top:auto;

    padding:20px;

    border-top:1px solid rgba(255,255,255,.1);

}

.user-info{

    display:flex;

    flex-direction:column;

    margin-bottom:15px;

    color:white;

}

.user-info small{

    opacity:.7;

    text-transform:capitalize;

}

.logout-btn{

    display:block;

    width:100%;

    text-align:center;

    background:#ef4444;

    color:white;

    padding:10px;

    border-radius:10px;

    text-decoration:none;

    transition:.2s;

}

.logout-btn:hover{

    background:#dc2626;

}

/*
|--------------------------------------------------------------------------
| LOGIN
|--------------------------------------------------------------------------
*/

.login-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e293b,
        #2563eb
    );

    overflow:hidden;

}

.login-container{

    width:100%;

    max-width:420px;

    padding:20px;

}

.login-card{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.1);

    border-radius:24px;

    padding:40px;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

}

.login-logo{

    color:white;

    font-size:42px;

    font-weight:800;

    letter-spacing:2px;

    margin-bottom:8px;

}

.login-subtitle{

    color:#cbd5e1;

    margin:0;

    font-size:15px;

}

.login-card .form-label{

    color:white;

    font-weight:500;

    margin-bottom:8px;

}

.login-card .form-control{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.12) !important;

    color:white;

    height:50px;

}

.login-card .form-control::placeholder{

    color:#cbd5e1;

}

.login-card .form-control:focus{

    background:rgba(255,255,255,.12);

    color:white;

}

.login-btn{

    height:50px;

    font-size:16px;

    font-weight:600;

    border-radius:14px;

}

/*
|--------------------------------------------------------------------------
| USER CARD
|--------------------------------------------------------------------------
*/

.user-card{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px;

    border-radius:16px;

    background:rgba(255,255,255,.06);

    margin-bottom:15px;

    transition:.25s;

}

.user-card:hover{

    background:rgba(255,255,255,.1);

    transform:translateY(-2px);

}

.user-avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    font-weight:700;

    font-size:18px;

    box-shadow:0 5px 15px rgba(37,99,235,.35);

}

.user-details{

    display:flex;

    flex-direction:column;

}

.user-details strong{

    color:white;

    font-size:15px;

}

.user-details small{

    color:#cbd5e1;

    font-size:13px;

}



/*
|--------------------------------------------------------------------------
| PREMIUM EFFECTS
|--------------------------------------------------------------------------
*/

.card{

    transition:
        transform .25s,
        box-shadow .25s;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.btn-primary,
.action-btn,
.logout-btn,
.sidebar .nav-link{

    transition:
        all .2s ease;

}

.btn-primary:hover,
.action-btn:hover,
.logout-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.sidebar .nav-link:hover{

    padding-left:20px;

}


/* =========================
   LAYOUT APP
========================= */

body {
    background: #f1f5f9;
    overflow-x: hidden;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   MOBILE OVERLAY
========================= */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 280px;
    background: #0f172a;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform .3s ease;
}

.sidebar-inner {
    height: 100%;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    transition: .2s;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    transition: margin-left .3s ease;
}


@media (min-width: 769px) {

    .main-content {
        margin-left: 280px;
    }

    .sidebar-collapsed .main-content {
        margin-left: 0;
    }

    .sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }

}
/* =========================
   TOPBAR
========================= */

.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: .2s ease;
}

.menu-toggle:hover {
    background: #e2e8f0;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #0f172a;
}

.dashboard-subtitle {
    margin: 0;
    color: #64748b;
}

.dashboard-status {
    background: #dbeafe;
    color: #2563eb;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   CARDS
========================= */

.dashboard-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transition: .2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.card-label {
    color: #64748b;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.card-value {
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* ICONOS */

.warning-icon {
    background: #fef3c7;
    color: #d97706;
}

.success-icon {
    background: #dcfce7;
    color: #16a34a;
}

.danger-icon {
    background: #fee2e2;
    color: #dc2626;
}

.primary-icon {
    background: #dbeafe;
    color: #2563eb;
}

/* MOBILE */

@media (max-width: 768px) {

    .dashboard-title {
        font-size: 26px;
    }

    .dashboard-card {
        min-height: 120px;
        padding: 20px;
    }

    .card-value {
        font-size: 28px;
    }

}
/* =====================================================================
 * NOVA v2 - Extensiones
 * ===================================================================== */

.card-custom {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.page-title { color: #0f172a; font-weight: 700; }

.confirm-form { display: inline; }

.nova-autocomplete { position: relative; }
.nova-autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    max-height: 280px; overflow-y: auto; z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.nova-autocomplete-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.nova-autocomplete-item:hover, .nova-autocomplete-item.active { background: #eff6ff; }
.nova-autocomplete-item code { background: #0f172a; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-right: 6px; }
.nova-autocomplete-item .precio { float: right; color: #2563eb; font-weight: 600; }

.progress { background: #e2e8f0; border-radius: 6px; }
