body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 30px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 7px 5px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
}

.navbar .navbar-buttons-wrapper {
    display: flex;
    align-items: center;
}

.navbar .buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar button {
    background-color: transparent;
    color: #3b3b3b;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar button:hover {
    background-color: transparent;
    transform: translateY(-2px);
}

.alert-button {
    background-color: transparent;
    color: #ff0000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: blink 1s infinite;
    margin-right: 10px;
    /* Align with other buttons */
}

@keyframes blink {
    0% {
        color: #ff0000;
        border-color: red;
    }

    50% {
        color: #3b3b3b;
        border-color: transparent;
    }

    100% {
        color: #ff0000;
        border-color: red;
    }
}

.file-item.red {
    border-left: 5px solid red;
    animation: blink 1s infinite;
}

.container {
    width: 100%;
    padding: 20px;
    padding-top: 100px;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
    align-items: flex-start;
}

.files-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3b3b3b;
    width: 57%;
    box-sizing: border-box;
    flex-grow: 1;
}

.new-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 40%;
    box-sizing: border-box;
    flex-shrink: 0;
    border-left: 5px solid #3b3b3b;
    min-height: 400px;
    height: auto;
}

.diagnostico {
    color: #2e86e4;
}

.order-info {
    color: #0000ff;
    font-size: 14px;
}


.new-container p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lab-item {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.lab-item p {
    color: #555;
    flex-grow: 1;
    margin: 0;
}

.lab-item button {
    background-color: #1a73e8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.lab-item button:hover {
    background-color: #0f5bb5;
    transform: translateY(-2px);
}

h1,
h2 {
    color: #3b3b3b;
    font-weight: 400;
    margin: 0;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

h2 {
    font-size: 2em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-details i {
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* Colores específicos para cada ícono */
.file-details .file-icon {
    color: #28A745;
    /* Verde para el ícono del título del archivo */
}

.file-details .order-icon {
    color: #17A2B8;
    /* Azul verdoso para el ícono del número de orden */
}

.file-details .date-icon {
    color: #FFC107;
    /* Ámbar para el ícono de la fecha */
}

.file-details .doctor-icon {
    color: #FF5733;
    /* Naranja rojizo para el ícono del doctor */
}

.file-details .diagnostico-icon {
    color: #6F42C1;
    /* Morado para el ícono de diagnósticos */
}

/* Estilos para los diagnósticos */
.diagnostico {
    display: inline;
}

.doctor-name {
    color: #FF5733;
    display: block;
    margin-top: 1px;
    margin-bottom: -6px;
    margin-left: -1px;
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.1);
}

.filters-container-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-container input,
.filters-container select,
.filters-container button {
    padding: 5px 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.filters-container button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

.filters-container button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.file-section {
    padding: 0 0px 15px 0px;
    border-radius: 10px;
}

.file-section-header:hover {
    background-color: #2d5a87;
}

.file-section-header {
    margin-top: 5px;
    font-size: 1.1em;
    cursor: pointer;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4c80b5;
    color: white;
    border-radius: 9px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 6px 5px rgba(0, 0, 0, 0.1);
}

.file-section-header .fas {
    transition: transform 0.3s;
}

.file-section-header.open .fas {
    transform: rotate(180deg);
}

.file-details {
    flex-grow: 1;
    margin-left: 15px;
}

.file-list {
    display: none;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.file-list.open {
    display: flex;
    flex-wrap: wrap;
}

.file-item {
    width: 48%;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s, transform 0.3s;
    cursor: pointer;
    margin-right: 2%;
    box-sizing: border-box;
    border: 1px solid #cccccc7d;
    position: relative;
    border-left: 5px solid #3f3f3f;
}

.file-item:hover {
    background-color: #ecf0f141;
    transform: translateY(-2px);
}

.small-select {
    width: 233px;
}

.file-item.selected {
    transform: scale(1.03);
    background-color: #d1e7ff;
}

.file-item div {
    display: flex;
    flex-direction: column;
}

/* Estilo para el título del archivo */
.file-title {
    font-size: 15px;
    /* font-weight: bold; */
    margin-bottom: 2px;
    color: #000000;
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.1);
}

/* Estilos para la fecha y la información de la orden */
.file-date {
    font-size: 15px;
    /* color: #888; */
    color: black;
    margin-top: -8px;
    margin-bottom: -3px;
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.1);
}

.file-preview-thumbnail {
    width: 90px;
    height: 120px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-button {
    display: none;
}

.lab-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
}

.lab-item p {
    margin: 0;
    flex-grow: 1;
    display: inline-block;
}

.lab-item button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 5px 10px;
    font-size: 1em;
    border-radius: 5px;
    margin-left: 16px;
}

.lab-item .lab-view-button {
    margin-left: 10px;
}

.lab-item button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

.file-item.red {
    background-color: #ffcccc;
    border-left: 5px solid #ff0000;
}

.visit-item {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    color: #555;
}

.visit-item p {
    margin: 0;
    line-height: 1.6;
}

.visit-section-header {
    margin-top: 5px;
    font-size: 1.1em;
    cursor: pointer;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3d79b5;
    color: white;
    border-radius: 9px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 6px 5px rgba(0, 0, 0, 0.1);
}

.visit-section-header .fas {
    transition: transform 0.3s;
}

.visit-section-header.open .fas {
    transform: rotate(180deg);
}

.visit-list {
    display: none;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.visit-list.open {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* table th,
table td {
    border-top: 1px solid #9b9b9b;
    padding: 8px;
} */

table th,
table td {
    border-top: 1px solid black;
    padding: 8px;
}

/* table th {
    background-color: #2d5a8747;
    text-align: left;
} */
table th {
    background-color: #0244857a;
    text-align: left;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.pagination button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

.pagination button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination span {
    font-size: 1em;
}

input#emailInput {
    background-color: #ffffff;
    color: black;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 10px 10px;
    font-size: .9em;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    margin-top: 10px;
}

.dropdown-menu {
    display: none;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid #0000000f;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #dddddd26;
    opacity: 1;
    transform: translateY(-2px);
}

.dropdown-menu.show .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu.show .dropdown-button {
    display: block;
}

.alert-message {
    background-color: #ffcccc;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: none;
    /* Inicialmente oculto */
}

/* .utilities-container {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px;
    border-bottom: 1px solid #00000033;
    border-top: 1px solid #00000033;
    background-color: #c5d1de;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */
.utilities-container {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px;
    border-bottom: 1px solid #00000033;
    border-top: 1px solid #00000033;
    /* border-radius: 10px; */
    /* background-color: #3d79b599; */
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #0444828f, #eaeaea);
    border-radius: 6px;
}

.utilities-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.utilities-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.utilities-container button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 10px 20px;
    font-size: .9em;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    margin-top: 10px;
    margin-left: 8px;
}

.utilities-buttons button {
    flex: 1;
    padding: 10px;
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1em;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.utilities-buttons button i {
    margin-right: 4px;
    /* Ajusta el valor para mayor o menor espacio */
}

.utilities-buttons button span {
    display: inline-block;
    vertical-align: middle;
}

.utilities-container button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

.utilities-container .expanded-scrollbar {
    display: none;
    overflow-y: auto;
    max-height: 200px;
    border: 1px solid #ccc;
    margin-top: 10px;
    padding: 10px;
}


.utilities-container .expanded-scrollbar.open {
    display: block;
}

#selectFilesMessage {
    display: none;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #ffcccc;
    border: 1px solid #ff0000;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#selectFiles {
    margin: 0;
    flex-grow: 1;
}

#selectFilesMessage button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

#selectFilesMessage button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 5px 10px;
    font-size: 1em;
    border-radius: 5px;
    margin-left: 10px;
}

.file-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}

.download-selected {
    display: none;
}

.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.pin-message {
    background-color: #fefefe;
    border: 1px solid #888;
    margin-top: 10px;
    text-align: center;
    animation: fadeIn 0.5s;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px;
    /* Default margin for larger screens */
    display: inline-block;
    /* Ensures it's an inline-block by default */
    position: relative;
    /* Default position for larger screens */
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -10px;
    margin-right: -10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#popupMessage {
    margin: 20px 0;
    font-size: 16px;
}

#popupOkButton {
    background-color: #3b3b3b;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

#popupOkButton:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.email-popup {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%);
    animation: fadeInEmailPopup 0.5s;
    justify-content: center;
    align-items: center;
}

.email-popup-content {
    background-color: #fff;
    padding: 30px 40px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.close-email-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -10px;
    margin-right: -10px;
    cursor: pointer;
}

.close-email-popup:hover,
.close-email-popup:focus {
    color: black;
    text-decoration: none;
}

.email-popup-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.email-popup-content input[type="email"] {
    width: 70%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.email-popup-content button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    vertical-align: top;
}

.email-popup-content button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

.email-error {
    color: red;
    font-size: 14px;
    margin-top: 9px;
    margin-bottom: -21px;
    display: none;
}

@keyframes fadeInEmailPopup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInEmailPopup {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@keyframes blinking {
    0% {
        color: white;
        border-color: white;
    }

    50% {
        color: #3b3b3b;
        border-color: transparent;
    }

    100% {
        color: white;
        border-color: white;
    }
}

.blinking {
    animation: blinking 1s infinite;
}

.pin-container {
    margin-left: 2px;
    display: flex;
    align-items: center;
}

.pin-message {
    font-weight: normal;
    display: none;
    /* Initially hidden */
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    /* Adjust this margin to align the message with the button */
}

.pin-message::after {
    content: 'Haz click para copiar';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.pin-message:hover::after {
    display: block;
    opacity: 1;
}

.pin-message.copied::after {
    content: '¡Copiado!';
    display: block;
    opacity: 1;
}

.copied-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 1s;
    z-index: 1000;
}

.pin-popup {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.pin-popup-content {
    background-color: #fff;
    padding: 30px 40px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.close-pin-popup {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-pin-popup:hover,
.close-pin-popup:focus {
    color: black;
    text-decoration: none;
}

.pin-popup-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.pin-popup-content input[type="password"] {
    width: 70%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.pin-popup-content button {
    background-color: #3b3b3b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    vertical-align: top;
}

.pin-popup-content button:hover {
    background-color: #272727;
    transform: translateY(-2px);
}

.pin-error {
    display: none;
    color: red;
}

.filters-container.open {
    display: flex;
}


#confirmActionModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro transparente */
    z-index: 1050;
}

#confirmActionModal .modal-content {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    z-index: 1060;
    position: relative;
}

/* Estilo para el encabezado del modal */
#confirmActionModal .header {
    text-align: center;
    margin-bottom: 20px;
}

#confirmActionModal .header h4 {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin: 0;
}

/* Estilo para los botones en el modal */
#confirmActionModal .form-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#confirmActionModal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    background-color: #1e3a8a;
    color: white;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#confirmActionModal .btn:hover {
    background-color: #3b82f6;
    transform: scale(1.05);
}

#confirmActionModal .custom-btn {
    background-color: transparent;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

#confirmActionModal .custom-btn:hover {
    background-color: #1e3a8a;
    color: white;
}

#confirmActionModal .btn-text {
    margin-top: 30px;
    font-size: 1rem;
    color: black;
    text-align: center;
}

/* Ajustar el overlay de carga para que se limite al files-container */
.files-container {
    position: relative;
    /* Importante para limitar el overlay dentro del contenedor */
}

#loadingOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos aplicados solo al contenedor con ID #customBtnContainer */
#customBtnContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#customBtnContainer .custom-btn {
    background: linear-gradient(89deg, #00366dc4, #c0c5ca);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
    /* Increased the duration */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.04);
        /* Slightly reduced scaling */
        box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4);
        /* Slightly less shadow intensity */
    }

    100% {
        transform: scale(1);
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    }
}

#customBtnContainer .custom-btn:hover {
    animation: bounce 0.6s ease;
    background: linear-gradient(175deg, #00366dc4, #eaeaea);
}

/* Bounce animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


#customBtnContainer .custom-btn i {
    font-size: 30px;
    color: white;
}

#customBtnContainer .btn-text {
    margin-top: 10px;
    font-weight: 500;
    font-size: 15px;
    font-weight: 600;
    color: #3b3b3b;
    text-align: center;
    transition: color 0.3s ease;
    margin-right: 10px;
}

/* Hover effect for text */
#customBtnContainer:hover .btn-text {
    color: #013164;
}


#generalInfoTitle {
    font-size: 2em;
    color: #3b3b3b;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: 9px;
}

/* Estilo para el ícono en el título */
#generalInfoTitle i {
    margin-right: 10px;
    /* Espacio entre el icono y el texto */
    font-size: 30px;
    /* Tamaño más grande para el icono */
    color: #3b3b3b;
    /* Color del icono en azul */
}

/* Estilos para el tooltip centrado en el modal */
.centered-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    z-index: 10000;
    display: none;
    /* Oculto por defecto */
    width: 300px;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#alertModalUnique.modal-unique {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

#alertModalUnique .modal-content-unique {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    text-align: center;
    animation: slideDown 0.4s ease;
}

#alertModalUnique .close-unique {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

#alertModalUnique .close-unique:hover {
    color: #000;
}

#alertModalUnique .modal-message-unique {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

#alertModalUnique .modal-ok-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#alertModalUnique .modal-ok-button:hover {
    background-color: #0056b3;
}

#customModal.modal,
#downloadModal.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

#customModal .modal-content,
#downloadModal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    animation: fadeIn 0.5s, fadeOut 0.5s 0.5s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.modal {
    display: none;
    /* Ensure it's hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

.modal .modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 80%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    /* Limita la altura del modal */
    overflow-y: auto;
    /* Permite desplazamiento si el contenido es demasiado alto */
}

.modal .modal-header {
    border-bottom: none;
    padding: 0;
    position: relative;
}

.modal .modal-footer {
    border-top: none;
    display: flex;
    justify-content: center;
}

.modal .modal-title {
    font-size: 1.75rem;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 10px;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    display: inline-block;
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.modal .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
}

.modal .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

.modal .btn-close {
    position: absolute;
    top: -70px;
    right: -32px;
    z-index: 1051;
    background: transparent;
    border: 1px;
    color: red;
    font-size: 40px;
    cursor: pointer;
}

.modal .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.modal .form-group label {
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

.modal .form-group input,
.modal .form-group select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    color: #334155;
    background-color: #f8fafc;
    transition: border-color 0.3s;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
    border-color: #3b82f6;
    outline: none;
}

.modal .card-upload {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.modal .upload-area {
    flex: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f1f5f9;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s;
}

.modal .upload-area:hover {
    background-color: #e2e8f0;
    border-color: #3b82f6;
}

.modal .upload-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.modal .upload-area span {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #1e3a8a;
    z-index: 10;
}

.modal .dates-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.modal .form-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.modal .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.modal .checkbox-group input {
    margin-top: 0;
    vertical-align: middle;
}

.modal .checkbox-group label {
    margin-left: 8px;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.5;
    vertical-align: middle;
}

.modal .custom-btn {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    /* Added transition property */
}

.modal .custom-btn:hover {
    color: #353535;
    /* Color change on hover */
    transform: scale(1.05);
    /* Slightly scale the button */
}


.info-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00000033;
    border-top: 1px solid #00000033;
    /* border-radius: 10px; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 2px;
    background: linear-gradient(90deg, #0444829c, #eaeaea);
    border-radius: 6px;
}

.info-title-container h2 {
    margin: 0;
}


button#openModal {
    color: transparent;
    cursor: pointer;
    background-color: transparent;
    border: 0px;
}

#openModal.custom-btn:hover {
    color: #353535;
    transform: scale(1.05);
}

.modal .btn-text {
    margin-top: 30px;
    font-size: 1rem;
    color: black;
    text-align: center;
}

/* Mantener el modal oculto por defecto */
#confirmationModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Fondo oscuro */
}

/* Estilo para el contenido del modal */
#confirmationModal .modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

/* Estilo para el botón de cierre */
#confirmationModal .close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

#confirmationModal button {
    margin: 5px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* Efecto hover */
#confirmationModal button:hover {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    /* Invertir colores del degradado */
    transform: translateY(-2px);
    /* Elevar el botón */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    /* Aumentar la sombra */
}

small#userError {
    color: red;
    margin-left: 4px;
}
@media (max-width: 1865px) {
    .body {
        font-size: 0.8em;
    }

    .navbar .navbar-buttons-wrapper {
        display: flex;
        justify-content: flex-end;
        flex-grow: 1;
    }

    .alert-button {
        margin-right: 0;
    }

    .utilities-container {
        display: flex;
        flex-direction: column;
    }

    .utilities-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .utilities-buttons button {
        flex: 1;
    }

    .file-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 15px;
        width: 100%;
        margin-right: 0;
    }

    .file-preview-thumbnail {
        width: 90px;
        height: auto;
    }

    .file-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    h1,
    h2 {
        font-size: 2.1em;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar .buttons {
        display: none;
    }

    .dropdown-menu {
        display: block !important;
    }

    .container {
        padding-top: 100px;
        flex-direction: column;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-preview-thumbnail {
        margin-top: 10px;
    }

    .filters-container-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 99%;
    }

    .filters-container {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-left: 0;
        display: none;
        flex-wrap: wrap;
        /* Permitir el ajuste de línea */
    }

    .filters-container.open {
        display: flex;
    }

    .filters-container input[type="text"],
    .filters-container input[type="date"] {
        flex: 1;
        padding: 5px;
        min-width: 0;
        /* Asegura que los inputs no excedan el espacio disponible */
    }

    .filters-container button {
        font-size: 0.8em;
        padding: 5px 10px;
        width: 100%;
        /* Ancho completo del contenedor */
    }

    /* Estilo específico para los botones debajo del primer input */
    #resetFilters,
    #viewAll {
        flex: 1 0 0%;
        /* Ocupa el 100% del ancho disponible y permite ajuste */
        margin-top: 2px;
        /* Espacio entre los inputs y los botones */
    }

    .dropdown-menu {
        display: block;
        position: relative;
    }

    .dropdown-button {
        background-color: #3b3b3b;
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.3s;
        padding: 5px 10px;
        font-size: 0.8em;
        border-radius: 5px;
        display: block !important;
    }

    .dropdown-button:hover {
        background-color: #272727;
        transform: translateY(-2px);
    }

    .files-container,
    .new-container {
        width: 100%;
    }
}

@media (max-width: 860px) {

    body {
        font-size: 0.8em;
    }
    .modal .btn-close {

        right: -60px ;
    }

    .utilities-container {
        padding: 10px;
    }

    .utilities-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .utilities-buttons button span {
        display: inline-block;
        vertical-align: middle;
    }

    .utilities-buttons button {
        width: calc(50% - 5px);
    }

    h1,
    h2 {
        font-size: 1.8em;
        text-align: center;
    }

    #generalInfoTitle {
        font-size: 1.6em;
        color: #3b3b3b;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 9px;
    }

    #generalInfoTitle i {
        font-size: 1.2em;

    }

    #customBtnContainer .custom-btn i {
        font-size: 25px;
    }

    #customBtnContainer .btn-text {
        font-size: 1.2em;
    }


    #customBtnContainer .custom-btn {
        width: 50px;
        height: 50px;

    }

}

@media (max-width: 700px) {
    .modal .btn-close {

        right: -40px ;
    }
    .small-select {
        width: 90px;
    }

    .file-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 0px;
        width: 100%;
        margin-right: 0;
    }

    .file-section-header {
        margin-top: 5px;
        font-size: .96em;
        cursor: pointer;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
        border-radius: 9px;
        transition: background-color 0.3s, transform 0.3s;
        box-shadow: 0 6px 5px rgba(0, 0, 0, 0.1);
    }

    h1,
    h2 {
        font-size: 1.5em;
        text-align: left;
    }

    .file-preview-thumbnail {
        margin-bottom: 10px;
    }

    /* .utilities-container {
        padding: 5px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    } */
    .utilities-buttons {
        width: 97%;
        font-size: 11px;
        display: flex;
        /* flex-direction: row; */
        /* justify-content: center; */
        gap: 0px;
    }

    .utilities-buttons {
        width: 99%;
        font-size: 13px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0px;
    }

    .utilities-buttons button {
        width: 48%;
        /* Set each button to take about half the container's width */
        font-size: 0.8em;
        text-align: center;
        box-sizing: border-box;
    }


    i.fas.fa-id-card {
        font-size: 40px !important;
    }

    .pin-message {
        background-color: #fefefe;
        border: 1px solid #888;
        margin-top: 10px;
        text-align: center;
        animation: fadeIn 0.5s;
        padding: 8px 15px;
        border-radius: 5px;
        margin-left: 10px;
        display: inline-block;
        position: relative;
    }

    #generalInfoTitle {
        font-size: 1.4em;
        gap: 6px;
    }

    #generalInfoTitle i {
        font-size: 1em;

    }

    #customBtnContainer .custom-btn i {
        font-size: 20px !important;
    }

    #customBtnContainer .btn-text {
        font-size: 1em;
    }


    #customBtnContainer .custom-btn {
        width: 40px;
        height: 40px;

    }

}
@media only screen and (max-width: 600px) {
    .modal .modal-content {
        width: 90%;
        /* Aumenta el ancho del modal para aprovechar mejor la pantalla */
        max-width: none;
        /* Quita el límite de ancho */
        padding: 20px;
        /* Reduce el padding para ahorrar espacio */
    }

    .modal .modal-title {
        font-size: 1.5rem;
        /* Reduce el tamaño del título */
    }

    .modal .btn-primary {
        font-size: 0.875rem;
        /* Ajusta el tamaño de los botones */
        padding: 10px 20px;
        /* Reduce el padding de los botones */
    }

    .modal .form-group input,
    .modal .form-group select {
        padding: 8px;
        /* Reduce el padding de los inputs */
    }

    .modal .btn-close {
        top: -40px;
        /* Ajusta la posición del botón de cierre */
        right: -20px;
        font-size: 30px;
        /* Ajusta el tamaño del botón de cierre */
    }

    .modal .upload-area {
        height: 150px;
        /* Reduce la altura del área de subida */
    }

    .modal .form-footer {
        flex-direction: column;
        /* Coloca los botones uno debajo del otro en lugar de en fila */
        gap: 10px;
        /* Agrega algo de espacio entre los botones */
    }
}
/* Nueva regla para resoluciones menores a 440px */
@media (max-width: 499px) {

    /* Set the filters container to be hidden by default */
    .filters-container {
        display: none;
    }

    .filters-container.open {
        display: flex;
        /* Or block if you don't want flexbox layout */
    }

    .filters-container input[type="text"],
    .filters-container input[type="date"],
    .filters-container select {
        width: calc(50% - 5px);
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .filters-container #filterOtherName {
        margin-right: 10px;
    }

    .filters-container #resetFilters,
    .filters-container #viewAll {
        flex: 1 1 100%;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
    }
}