html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Evita scroll en la página completa */
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #f5f5f5;
}

h2 {
    color: #3f51b5;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: #01643d !important;
}

a:hover {
    text-decoration: underline;
}

.directory {
    color: #ff5722;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #fff;
}

.breadcrumb li {
    margin-right: 5px;
}

.breadcrumb li+li:before {
    content: "/" !important;
    margin-right: 5px;
    color: #000 !important;
}

.rename-form,
.delete-form {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
}

.rename-form input[type="text"],
.delete-form input[type="hidden"] {
    padding: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: calc(100% - 40px);
}

.rename-form .btn,
.delete-form .btn {
    margin-top: 10px;
}

.new-folder-form,
.upload-file-form,
.new-folder-with-files-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.new-folder-form input[type="text"],
.upload-file-form input[type="file"],
.new-folder-with-files-form input[type="text"],
.new-folder-with-files-form input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    flex-grow: 1;
}

.new-folder-form button,
.upload-file-form button,
.new-folder-with-files-form button {
    flex-shrink: 0;
    width: auto;
}

#progressWrapper {
    display: none;
    margin-top: 20px;
}

#progressBar {
    width: 0;
    height: 20px;
}

.dropzone {
    border: 2px dashed #007bff;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.dropzone.dragover {
    background-color: #e9ecef;
}

.card-folder {
    margin-top: 3rem;
    position: relative;
    border-radius: 0.5rem;
    border-color: transparent;
    min-height: 12rem;
}

.card-folder:before {
    content: "";
    position: absolute;
    background-color: #ffffff;
    -webkit-border-radius: .25rem .25rem 0 0;
    border-radius: .25rem .25rem 0 0;
    width: 50%;
    height: 1rem;
    top: -0.85rem;
    left: 0px;
}

.card-body {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.5rem 1.5rem;
}

.file-size {
    font-size: xx-small;
}

.copy-link-button {
    color: #6d9feb !important;
}

.delete-button {
    color: #862020 !important;
}

.rename-button {
    color: #482872 !important;
}

.navbar-collapse {
    width: 20%;
}

.nav-link:hover {
    background-color: #026e341a;
    color: #fff;
}

button.nav-link {
    background-color: transparent;
    color: #01643d;
    width: 100%;
    border: none;
}

button.nav-link:hover {
    background-color: #026e341a;
    color: #01643d;
}

.nav-item button.nav-link {
    display: flex;
}

.container-unimo {
    width: calc(100% - 270px);
    margin-left: 270px;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    transition: padding-left 0.3s ease;
}

/* A partir de 1231px hacia abajo, ocultas la sidenav y ajustas container */
@media (max-width: 1231px) and (orientation: Portrait) {
    .container-unimo {
        width: 100%;
        margin-left: 0;
        padding: 2rem;
        /* o lo que necesites */
    }
}

@media (max-width: 1231px) {

    .sidenav {
        display: none;
    }
}


/* A partir de 768px hacia abajo, ajustas aún más si fuera necesario */
@media (max-width: 768px) {
    .container-unimo {
        padding-left: 1rem;
        padding-right: 1rem;
        /* width: 100% y margin-left: 0 ya están aplicados en la regla de 1231px */
    }

    .navbar-collapse {
        width: 50%;
    }
}

.mr-1 {
    margin-right: 0.25rem !important;
}


.ml-1 {
    margin-left: 0.25rem !important;
}

.input-group {
    align-items: center;
}

.btn-icon {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 1.2rem;
}

.btn-icon:hover {
    color: #1b6b2f;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px 10px;
}

.dropdown-menu.show {
    z-index: 1001;
}

.floating-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(13, 130, 149, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 30px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(13, 130, 149, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icono de notificación */
.floating-notification .icon {
    width: 28px;
    height: 28px;
    background: white;
    mask-image: url('assets/notification.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

/* Efecto gradual en el texto */
.floating-notification .text {
    max-width: 250px;
    line-height: 1.5;
    background: linear-gradient(135deg, #ffffff, #cceeff);
    -webkit-text-fill-color: transparent;
}

/* Efecto de entrada */
.floating-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(13, 130, 149, 0.7);
}

/* Efecto hover para aumentar el brillo */
.floating-notification:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(13, 130, 149, 0.9);
}

/* Efecto de pulso en el icono */
.floating-notification.show .icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Animación de entrada y salida */
.floating-notification.show {
    animation: slideFadeIn 0.6s ease forwards;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación de salida */
.floating-notification.hide {
    animation: slideFadeOut 0.4s ease forwards;
}

@keyframes slideFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

.pdf-thumbnail {
    width: 100%;
    cursor: pointer;
}

.pdf-container {
    position: relative;
}

.pdf-container .pdf-thumbnail {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-container .file-checkbox {
    position: absolute;
    top: -5px;
    left: 4px;
    width: 20px;
    height: 20px;
    z-index: 2;
    cursor: pointer;
    display: none;
    appearance: none;
    /* Elimina el estilo por defecto */
    border: 2px solid #aaa;
    border-radius: 15px;
    background-color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover: muestra el checkbox */
.file-item:hover .file-checkbox {
    display: block;
}

/* Animación y color cuando se selecciona */
.pdf-container .file-checkbox:checked {
    display: block;
    background-color: #01643d;
    /* Cambia el color al hacer check */
    border-color: #01643d;
    transform: scale(1.2);
    /* Hace un efecto de agrandamiento */
}

/* Añade una marca de verificación visual */
.pdf-container .file-checkbox:checked::after {
    content: '✔';
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cambia el fondo de .file-item cuando el checkbox dentro está marcado */
.file-item:has(.file-checkbox:checked) {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
}

a:hover {
    text-decoration: none;
}

.btn-back {
    background-color: transparent;
    color: #7e7e7e;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    color: #01643d;
    animation: bounce 0.6s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }
}


.open-button {
    color: #007bff !important;
}

.open-button::before {
    content: "\f07c";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    margin-right: 5px;
}

.delete-button-folder,
.delete-button-file {
    color: #dc3545 !important;
}

.delete-button-folder::before,
.delete-button-file::before {
    content: "\f2ed";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    margin-right: 5px;
}

.rename-button,
.edit-file-button {
    color: #2c6b7a !important;
}

.rename-button::before,
.edit-file-button::before {
    content: "\f044";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    margin-right: 5px;
}

.move-button,
.move-file-button {
    color: #007bff !important;
}

.move-button::before,
.move-file-button::before {
    content: "\f0b2";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 5px;
}

.share-button {
    color: #28a745 !important;
}

.share-button::before {
    content: "\f14d";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    margin-right: 5px;
}

.share-button:hover {
    color: #007bff !important;
}

.favorite-button {
    color: #ffbe5e !important;
}

.favorite-button::before {
    content: "\f005";
    font-family: "Font Awesome 6 Pro";
    font-weight: 300;
    margin-right: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.favorite-button:hover {
    color: #a3912b !important;
}

.unfavorite-button {
    color: #ff5e5e !important;
}

.unfavorite-button::before {
    content: "\f005";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.unfavorite-button:hover {
    color: #ff5e5e !important;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-item::before {
    display: inline-block;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Animaciones individuales por botón */
.open-button:hover::before {
    transform: scale(1.2) rotate(5deg);
}

.rename-button:hover::before,
.edit-file-button:hover::before {
    transform: scale(1.2) rotate(-5deg);
}

.unfavorite-button:hover::before {
    transform: rotate(15deg);
}

.favorite-button:hover::before {
    transform: rotate(15deg);
}

.delete-button-folder:hover::before,
.delete-button-file:hover::before {
    transform: rotate(-10deg) scale(1.1);
}

.share-button:hover::before {
    transform: scale(1.2) rotate(8deg);
}

.move-button:hover::before,
.move-file-button:hover::before {
    transform: scale(1.2) rotate(8deg);
}

.restore-button {
    color: #007bff !important;
    transition: color 0.3s ease;
}

.restore-button::before {
    content: "\f1b8";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 5px;
    display: inline-block; /* Asegura que la transformación funcione */
    transition: transform 0.3s ease, color 0.3s ease;
}

.restore-button:hover {
    color: #3086e0 !important;
}

.restore-button:hover::before {
    transform: scale(1.2) rotate(8deg);
}

.delete-permanent-button {
    color: #dc3545 !important;
    transition: color 0.3s ease;
}
.delete-permanent-button::before {
    content: "\f05e";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 5px;
    display: inline-block; /* Asegura que la transformación funcione */
    transition: transform 0.3s ease, color 0.3s ease;
}

.delete-permanent-button:hover {
    color: #dc3545 !important;
}
.delete-permanent-button:hover::before {
    transform: scale(1.2) rotate(-10deg);
}
/* Contenedor para posicionar las estrellas de forma absoluta */
.star-container {
    position: relative;
}

/* Cada estrella (ícono) */
.star {
    position: absolute;
    color: #ffcc00;
    font-size: 13px;
    animation: pop-star 2s infinite;
    left: -10px;
    bottom: 2px;
}
@keyframes pop-star {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
        filter: drop-shadow(0 0 0 rgba(255, 207, 16, 0));
    }
    
    15% {
        transform: scale(1.2) translateY(-5px);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 207, 16, 0.8));
    }
    
    30% {
        transform: scale(0.9) translateY(2px) rotate(5deg);
        opacity: 0.9;
    }
    
    45% {
        transform: scale(1.1) translateY(-2px) rotate(-3deg);
        filter: drop-shadow(0 0 12px rgba(255, 207, 16, 0.6));
    }
    
    60% {
        transform: scale(0.95) translateY(1px);
        opacity: 1;
    }
    
    75% {
        transform: scale(1.05) translateY(0) rotate(2deg);
        filter: drop-shadow(0 0 10px rgba(255, 207, 16, 0.4));
    }
    
    90% {
        transform: scale(0.98) translateY(0) rotate(-1deg);
        opacity: 0.9;
    }
    
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
        filter: drop-shadow(0 0 5px rgba(255, 207, 16, 0.3));
    }
}