/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background-color: #f4f6f9;
    color: #1f2937;
    font-size: 14px;
}

/* =========================
   WRAPPER
========================= */
#wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR PREMIUM
========================= */
.sidebar {
    width: 250px;
    background: #1e293b; /* azul gris elegante */
    min-height: 100vh;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar-heading {
    padding: 22px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar .list-group-item {
    background: transparent !important;
    border: none !important;
    color: #cbd5e1 !important;
    padding: 14px 22px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar .list-group-item:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    padding-left: 26px;
}




/* =========================
   CONTENIDO
========================= */
#page-content-wrapper {
    flex: 1;
    background-color: #f4f6f9;
}

.container-fluid {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    margin: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* =========================
   TITULOS
========================= */
h3, h4, h5 {
    color: #111827;
    font-weight: 600;
}

/* =========================
   DASHBOARD CARDS
========================= */
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.metric-title {
    font-size: 13px;
    color: #6b7280;
}

.metric-value {
    font-size: 26px;
    font-weight: 700;
    margin-top: 6px;
    color: #111827;
}

/* =========================
   TABLAS
========================= */
.table {
    background-color: #ffffff;
}

.table thead {
    background-color: #f9fafb;
}

.table th {
    color: #374151;
    font-weight: 600;
}

/* =========================
   FORMULARIOS
========================= */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================
   BOTONES
========================= */
.btn-dark {
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
}

.btn-dark:hover {
    background-color: #1d4ed8;
}

.btn-outline-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* =========================
   LOGIN PAGE FIX
========================= */
.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 380px;
}

.login-container h4 {
    color: #111827;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 1000;
    }

    #wrapper.toggled .sidebar {
        margin-left: 0;
    }

    .container-fluid {
        margin: 15px;
    }

}


/* =========================
   LOGIN PREMIUM
========================= */

.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f6f9, #e5e7eb);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 420px;
    background: #ffffff;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.login-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 30px;
}

.version-info {
  position: fixed;
  /*bottom: 10px;
  left: 0;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  color: #ffffff;
  margin: 0;
  opacity: 0.8;*/
}

/* =========================
   MENU SECUNDARIO PRO
========================= */

.menu-secundario {
    background: linear-gradient(90deg, #111827, #1f2937);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.menu-secundario .container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Links */
.menu-link {
    position: relative;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 0.6rem;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

/* Hover elegante */
.menu-link:hover {
    background: rgba(59,130,246,0.15);
    color: #ffffff;
}

/* Indicador inferior animado */
.menu-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-link:hover::after {
    width: 60%;
}

/* Activo */
.menu-link.active {
    background: rgba(59,130,246,0.2);
    color: #ffffff;
}

.menu-link.active::after {
    width: 60%;
}

/* =========================
   ELIMINAR - DISEÑO PRO
========================= */

.btn-eliminar {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-eliminar:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Subcategorías */
.sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.sub-item:hover {
    background-color: #f1f5f9;
}

/* Conceptos */
.concepto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.concepto-item:hover {
    background-color: #f8fafc;
}

/* Ocultar botón hasta hover */
.form-eliminar {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sub-item:hover .form-eliminar,
.concepto-item:hover .form-eliminar,
.accordion-header:hover .form-eliminar {
    opacity: 1;
}

.form-label span{
    font-weight:700;
}

.form-control:required,
.form-select:required{
    border-left:3px solid #dc3545;
}


