@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    height: 100%;
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  
  footer {
    margin-top: auto;
  }

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    opacity: 1;
    overflow-y: scroll;
    margin: 0;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

li {
    list-style: none;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.275rem;
    color: var(--bs-emphasis-color);
}

/* Layout for admin dashboard skeleton */

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}

#sidebar {
    max-width: 264px;
    min-width: 264px;
    background: var(--bs-dark);
    transition: all 0.35s ease-in-out;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    width: 100%;
    background: var(--bs-dark-bg-subtle);
}

.custom-label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Sidebar Elements Style */

.sidebar-logo {
    padding: 1.15rem;
}

.sidebar-logo a {
    color: #e9ecef;
    font-size: 1.15rem;
    font-weight: 600;
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #e9ecef;
    position: relative;
    display: block;
    font-size: 0.875rem;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.sidebar-dropdown {
    padding-left: 20px; /* Ajusta este valor según lo que necesites */
}

.avatar {
    height: 40px;
    width: 40px;
}

.navbar-expand .navbar-nav {
    margin-left: auto;
}

.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
}

.badge-patente {
    background-image: url('/static/img/patente.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 10px 25px;
    letter-spacing: 5px;
    display: inline-block;
}

.badge-patente span {
    display: inline-block;
    margin-top: 13px;
    font-size: 1.25rem;  /* Ajusta el tamaño del texto si lo necesitas */
}


@media (min-width:768px) {
    .content {
        max-width: auto;
        width: auto;
    }
}



.card {
    box-shadow: 0 0 .875rem 0 rgba(34, 46, 60, .05);
    margin-bottom: 24px;
}

.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card-hover i {
    color: #007bff; /* Color del icono */
    transition: color 0.3s;
}
.card-hover:hover i {
    color: #0056b3; /* Color al pasar el mouse */
}



.illustration {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-emphasis-color);
}

.illustration-img {
    max-width: 150px;
    width: 100%;
}

/* Sidebar Toggle */

#sidebar-toggle {
    z-index: 10001; /* Asegura que el botón esté por encima de la sidebar expandida */
    cursor: pointer;
    background-color: transparent; /* Fondo transparente si prefieres que coincida con la barra */
}

#sidebar.collapsed {
    margin-left: -264px;
}

/* Footer and Nav */

@media (max-width:768px) {

    .js-sidebar {
        margin-left: -264px;
    }

    #sidebar.collapsed {
        margin-left: 0;
    }

    #sidebar-toggle {
        left: 10px; /* Ajusta la posición del botón en móviles si es necesario */
        margin-left: 250px;
    }

    #sidebar {
        position: fixed; /* Fijar la sidebar para que ocupe toda la pantalla */
        width: 100%; /* Hacer que ocupe el 100% del ancho */
        height: 100%; /* Hacer que ocupe el 100% de la altura */
        z-index: 9999; /* Asegurarte de que esté por encima del contenido */
        left: 0;
        top: 0;
    }

    /* Ajustar el contenido cuando la sidebar está abierta */
    #sidebar.expanded + .content {
        overflow: hidden; /* Evitar que el contenido se desarregle */
    }


    .navbar,
    footer {
        width: 100vw;
    }
}

/* Theme Toggler */

.theme-toggle {
    color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .theme-toggle .bi-sun-fill,
html[data-bs-theme="light"] .theme-toggle .bi-moon-fill {
    cursor: pointer;
    padding: 10px;
    display: block;
    font-size: 1.25rem;
    color: #FFF;
}

html[data-bs-theme="dark"] .theme-toggle .bi-moon-fill {
    display: none;
}

html[data-bs-theme="light"] .theme-toggle .bi-sun-fill {
    display: none;
}

.custom-label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

