.rounded-logo {
    border-radius: 50%;
    width: 180px;
    /* Puedes mantener el tamaño o ajustarlo */
    height: 180px;
    /* Asegúrate de que la altura sea la misma que el ancho */
    object-fit: cover;
    /* Asegura que la imagen no se distorsione */
}


#totalUsuarios,
#totalProductores,
#totalCertificados,
#totalPreguntas,
#ultimosUsuarios,
#pastel {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.aparecer {
    opacity: 1 !important;
}

/* Fondo con animación suave */
.login-bg {
    background: linear-gradient(135deg, #f8f4f0, #dfccc1);
    animation: backgroundShift 15s ease infinite;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Fade-in suave */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Input focus */
.input-focus:focus {
    border-color: #a47148;
    box-shadow: 0 0 0 0.15rem rgba(164, 113, 72, 0.25);
}

/* Botón marrón dinámico */
.btn-login {
    background-color: #6F4E37;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.9rem;
}

.btn-login:hover,
.btn-login:focus {
    background-color: #a47148;
    transform: translateY(-2px);
    color: white;
}

/* Color café principal */
.text-brown {
    color: #6F4E37 !important;
}

/* Estilo base del enlace del sidebar */
.custom-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.65rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    animation: fadeSlide 0.4s ease-in-out !important;
    text-decoration: none !important;
}

/* Icono dentro del enlace */
.custom-link i {
    font-size: 1rem !important;
    color: #fff !important;
    transition: color 0.3s ease !important;
}

/* Hover sobre el enlace */
.custom-link:hover {
    background-color: #a47148 !important;
    color: #fff !important;
    transform: translateX(5px) !important;
}

.custom-link:hover i {
    color: #fff !important;
}

/* Enlace activo */
.custom-link.active {
    background-color: #6F4E37 !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 #a47148 !important;
}

.custom-link.active i {
    color: #fff !important;
}

/* Animación de entrada */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        z-index: 1030;
        background-color: #f8f4f0;
    }

    .left-sidebar.sidebar-open {
        transform: translateX(0);
    }

    body.sidebar-overlay::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1029;
    }
}


.bg-brown {
    background-color: #f4eae4 !important;
    /* Marrón claro suave */
    color: #6F4E37 !important;
    /* Marrón oscuro para el texto */
}

.bg-brown .nav-link,
.bg-brown .navbar-brand,
.bg-brown .nav-item i {
    color: #6F4E37 !important;
}

.left-sidebar {
    transition: all 0.3s ease;
}