html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --color-principal: #1f4e78;
    --color-principal-dark: #173a5b;
    --color-sidebar: #182433;
    --color-sidebar-hover: #24364a;
    --color-texto: #dce4ec;
    --color-fondo: #f4f6f9;
    --sidebar-width: 260px;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;
    padding-top: 56px;
    background-color: var(--color-fondo);
    font-family: "Segoe UI", Arial, sans-serif;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-principal {
    height: 56px;
    background: var(--color-principal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.05rem;
    letter-spacing: .2px;
}

.btn-menu {
    color: white;
    border: none;
    font-size: 1.4rem;
    padding: 3px 8px;
}

    .btn-menu:hover {
        background-color: rgba(255,255,255,.15);
        color: white;
    }

.usuario-menu {
    color: white !important;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    color: var(--color-texto);
    z-index: 1000;
    transition: all .25s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,.08);
    overflow-y: auto;
}


/* =========================================================
   SIDEBAR HEADER
   ========================================================= */

.sidebar-header {
    height: 82px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-principal);
    border-radius: 10px;
    font-size: 1.3rem;
    margin-right: 12px;
}

.sidebar-title {
    display: flex;
    flex-direction: column;
}

    .sidebar-title span {
        color: white;
        font-weight: 600;
    }

    .sidebar-title small {
        color: #9daaba;
        font-size: .72rem;
    }


/* =========================================================
   SECCIONES
   ========================================================= */

.menu-section {
    padding: 20px 20px 7px;
    color: #7f91a5;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   LINKS
   ========================================================= */

.sidebar-link {
    display: flex;
    align-items: center;
    height: 45px;
    margin: 3px 10px;
    padding: 0 12px;
    border-radius: 7px;
    color: #cbd5df;
    text-decoration: none;
    transition: all .2s ease;
}

    .sidebar-link i {
        width: 30px;
        font-size: 1.05rem;
        text-align: center;
        margin-right: 8px;
    }

    .sidebar-link span {
        font-size: .9rem;
    }

    .sidebar-link:hover {
        color: white;
        background-color: var(--color-sidebar-hover);
        transform: translateX(2px);
    }


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 15px;
}

.hosting-status {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255,255,255,.05);
    border-radius: 8px;
    font-size: .75rem;
}

    .hosting-status strong {
        display: block;
        color: white;
        font-size: .75rem;
    }

    .hosting-status small {
        color: #8e9cac;
    }

.status-dot {
    width: 9px;
    height: 9px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 9px;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - 106px);
    padding: 25px;
    transition: all .25s ease;
}


/* =========================================================
   SIDEBAR CONTRAÍDO
   ========================================================= */

.sidebar-collapsed {
    width: 0;
    overflow: hidden;
}

.main-expanded {
    margin-left: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-left: var(--sidebar-width);
    padding: 15px 25px;
    background-color: white;
    border-top: 1px solid #e5e8eb;
    color: #7a8490;
    font-size: .8rem;
    transition: all .25s ease;
}

.footer-expanded {
    margin-left: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .sidebar {
        width: var(--sidebar-width);
    }

    .sidebar-collapsed {
        width: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .footer {
        margin-left: 0;
    }
}

/* ========================================================= DASHBOARD ========================================================= */ .dashboard-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
    transition: all .2s ease;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    }

.dashboard-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #eaf2f8;
    color: var(--color-principal);
    font-size: 1.3rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, .15);
}
.sidebar-link.active {
    background-color: var(--color-principal);
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

    .sidebar-link.active:hover {
        background-color: var(--color-principal);
        transform: none;
    }