﻿body {
    display: flex;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: #f8f9fa; /* Fondo más claro, similar al contenido de la página */
    position: fixed;
    top: 56px;
    left: 0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1051;
    transition: left 0.3s;
    border-right: 1px solid #d3e0e5; /* Línea divisoria más fina y color más claro */
}

    .sidebar .user-info {
        text-align: center;
        margin-bottom: 1rem;
    }

        .sidebar .user-info .avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: white;
            border: 2px solid green;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: green;
            font-size: 22px;
            margin: 0 auto;
        }

    .sidebar .nav-link {
        color: #333;
        display: flex;
        align-items: center;
        position: relative;
    }

        .sidebar .nav-link i {
            margin-right: 10px;
        }
        /* Línea verde al final del item seleccionado */
        .sidebar .nav-link.active {
            background-color: #d3d3d3; /* Fondo gris */
            color: green; /* Texto verde */
        }

        /*.sidebar .nav-link.active::after {
                content: '';
                position: absolute;
                top: 0;
                right: -10px;*/ /* Ajusta la distancia desde el borde derecho */
        /*width: 3px;*/ /* Ancho de la línea */
        /*height: 100%;
                background-color: green;*/ /* Línea verde */
        /*}*/
        /* Línea verde al final del item seleccionado, ocupando todo el espacio entre el item y la divisoria */
        .sidebar .nav-link.active {
            border-right: 3px solid green; /* Línea verde en todo el lado derecho */
            padding-right: 15px; /* Ajuste de espacio */
        }

        .sidebar .nav-link:not(.active) {
            border-bottom: 1px solid #d3e0e5; /* Línea divisoria más fina y clara */
        }

.container-profile {
    margin-top: 35px;
    max-width: 1000px;
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*max-width: 1000px;
    margin: auto;
    align-items: center;*/
    /*padding: 2rem 1rem;*/
}

.profile-wrapper {
    display: flex;
    gap: 1rem;
}

.profile-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 350px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid green;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: green;
    margin: auto;
    position: relative;
}

    .profile-avatar i {
        position: absolute;
        bottom: 0;
        right: 0;
        background: white;
        border-radius: 50%;
        padding: 5px;
        font-size: 16px;
        cursor: pointer;
    }

.info-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-box {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

    .info-box h6 {
        font-size: 14px;
        font-weight: bold;
        color: #555;
        margin-bottom: 5px;
    }

    .info-box p {
        margin: 0;
        font-size: 16px;
    }

.content {
    margin-left: 250px;
    flex-grow: 1;
    padding: 2rem;
    margin-top: 70px;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}
/* Ajuste para móviles */


@media (max-width: 2024px) {
    .sidebar {
        left: -250px;
    }

        .sidebar.show {
            left: 0;
        }

    .content {
        --bs-gutter-x: 1rem;
        margin-left: 0; /* Quitar margen izquierdo */
        padding-right: calc(var(--bs-gutter-x)* 0.5) !important;
        padding-left: calc(var(--bs-gutter-x)* 0.5) !important;
        max-width: 100%; /* Ocupa todo el ancho disponible */
        padding: 1rem; /* Agrega padding para evitar que el contenido toque los bordes */
    }

    .profile-wrapper {
        flex-direction: column;
    }

    .profile-card {
        max-width: 100%;
    }
}



.navbar {
    z-index: 1053;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #28a745; /* Fondo verde */
    color: white; /* Texto blanco */
}

    .navbar .navbar-brand {
        color: white; /* Texto del logo blanco */
    }
    /* Ícono de menú en móvil */
    .navbar .btn {
        color: #28a745; /* Color verde del ícono del menú */
        border: none; /* Sin borde */
        background: none; /* Sin fondo */
    }

        .navbar .btn i {
            font-size: 30px; /* Tamaño adecuado para el ícono */
        }
/* Botón del menú con el color del header */
#menu-toggle {
    background-color: #28a745; /* Color verde del header */
    border-color: #28a745; /* Borde verde */
    color: white; /* Texto blanco */
}

    #menu-toggle:hover {
        background-color: #218838; /* Verde más oscuro en hover */
        border-color: #1e7e34; /* Borde verde más oscuro */
    }



/************************/
/* Estilo responsivo para los botones del SweetAlert2 */
.swal2-actions-custom {
    display: flex !important;
    justify-content: center !important;
    gap: 10px;
}

.swal2-confirm-custom {
    background-color: #198754; /* Bootstrap success */
    color: white;
    border: none;
    width: 100px;
    height: 100px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    border-radius: 0 !important;
    padding: 0 !important;
}

.swal2-cancel-custom {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    width: 100px;
    height: 100px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    border-radius: 0 !important;
    padding: 0 !important;
}



/*
    .swal2-actions {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

        .swal2-actions .btn {
            flex: 1 1 140px;
            min-width: 120px;
            max-width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            white-space: nowrap;
            font-size: 15px;
        }*/

/* Iconos dentro del botón (opcional si usás imágenes) */
/*.swal2-actions .btn img {
                width: 16px;
                height: 16px;
            }*/
/* Estilos globales para todos los botones de Bootstrap */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*padding: 10px 16px;*/ /* Ajusta el relleno según lo que necesites */
    font-size: 16px; /* Tamaño de fuente uniforme */
    border-radius: 6px; /* Borde redondeado uniforme */
    /*min-width: 140px;*/ /* Ancho mínimo para que sean consistentes */
    box-sizing: border-box;
}

    /* Asegurarse de que los íconos o imágenes dentro del botón queden proporcionados */
    .btn img {
        width: 16px;
        height: 16px;
        margin-right: 4px; /* Ajustá según convenga */
    }

/*      footer {
            background: #f8f9fa;
            text-align: center;
            padding: 10px;
            font-size: 14px;
            width: 100%;
            margin-top: auto;
        }*/
/******************************************************************************/
/*body {
    background-color: #f8f9fa;
}

.navbar {
    background-color: #198754;
}

.sidebar {
    background-color: white;
    height: 100vh;
    position: fixed;
    width: 250px;
    padding-top: 20px;
    left: 0;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        width: 100%;
        height: auto;
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}*/
