.navbar-brand {
    font-size: 28px !important;
    color: #868686 !important;
    font-family: 'Nunito Sans', sans-serif !important;
    margin-left: 5px;
}

.navbar-logo {
    margin-left: 20px;
}

.container-fluid {
    height: 40px;
}

body {
    font-family: 'Open Sans', sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.card-body {
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px,
        rgba(0, 0, 0, 0.07) 0px 2px 4px,
        rgba(0, 0, 0, 0.07) 0px 4px 8px,
        rgba(0, 0, 0, 0.07) 0px 8px 16px,
        rgba(0, 0, 0, 0.07) 0px 16px 32px,
        rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 89vh;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.page-footer {
    width: 100%;
    padding: 0px;
    margin-top: auto;
    position: fixed;
    bottom: 0;
}


.avatar {
    width: 265px;
}

.navbar .container-avatar {
    width: 55px;
    height: 35px;
    border-radius: 900px;
    overflow: hidden;
    margin-left: 30px;
}

.navbar .container-avatr img {
    height: 100%;

}

.pub_image {
    margin-bottom: 25px;
}

.pub_image .container-avatar {
    width: 85px;
    height: 75px;
    overflow: hidden;
    float: left;
}

.pub_image .container-avatar img {
    height: 75%;
    width: 60%;
    border-radius: 1200px;
    margin-left: 20px;
    margin-right: 75px;
}

.pub_image .data-user {
    font-weight: bold;
    line-height: 60px;
}

.pub_image .email {
    color: gray;
}

.image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.image-detail {
    max-height: 500px;
}

.image-container img {
    width: 100%;
}

.pub_image .card-body {
    padding: 0px;
}

.pub_image .description {
    padding: 20px;
    padding-bottom: 0px;
}

.pub_image .btn-comments {
    margin: 20px;
    margin-top: 0px;
    margin-left: 0px;
}

.likes {
    float: left;
    padding-left: 20px;
    padding-right: 10px;
}

.likes img {
    width: 20px;
}

.pub_image_detail .comments {
    padding: 20px;
}

.button-position {
    text-align: right;
    margin-right: 70px;
    margin-bottom: 20px !important;
}

.custom-tooltip {
    --bs-tooltip-bg: var(--bs-primary);
}

/* ↓ Estilos del datatable ↓ */
.table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    border-left: 0;
    border-radius: 4px;
    border-spacing: 0px;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}


.table-bordered {
    border: 0.5px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 2px solid #dee2e6 !important;
    white-space: nowrap;
}

/* ↓ Estilos de la foto empleado ↓ */
.foto {
    margin-bottom: .3rem;
}

.container-foto {
    width: 8.5rem;
    height: 8.5rem;
    /* border-radius: 800px; */
    /* margin-left: 50px; */
    margin-left: 7rem;
    overflow: hidden;
}

.container-foto img {
    /* height: 75%; */
    height: 100%;
    /* width: 60%;
    border-radius: 1200px;
    margin-left: 20px;
    margin-right: 75px; */
}

.modal-custom {
    max-width: 1800px !important;
}

.table-auto td {
    white-space: nowrap !important;
}

.table-auto th,
.table-auto td {
    width: auto !important;
}

.modal-fondo-oscuro {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 51, 51, 0.8);
    z-index: -1;
}

#modalFirma {
    width: 35%;
    height: auto;
    max-height: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    overflow-y: auto;
    border: 2px solid black;
}

.modal-content-firma {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.button-container button {
    margin: 0 5px;
    padding: 10px 20px;
    border: 1px solid rgb(14, 12, 12);
}

#canvasFirma {
    width: 100%;
    height: 220px;
    max-width: 1000px;
    max-height: 100%;
    margin: 0 auto;
}

.close-modal-firma {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 30px;
}

#AdjuntosContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.imagen-descarga-container {
    max-width: 150px;
    margin: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
}

.imagen-descarga-container img,
.imagen-descarga-container embed {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    padding: 5px;
}

.imagen-descarga-container a {
    display: block;
    text-align: center;
    padding: 5px 0;
    /* background-color: #6e4a3f; */
    background-color: #ec9544;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4));
    text-decoration: none;
    color: #fdfcfc;
    border-top: 1px solid #979494;
    border-radius: 0 0 5px 5px;
}

.imagen-descarga-container:hover {
    transform: scale(1.1);
    border-color: #7c7b7b;
    box-shadow: 0px 4px 35px rgba(0, 0, 0, 0.2);
}

.imagen-descarga-container:hover a {
    /* background-color: #927266; */
    background-color: #ce8e53;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));
    background-blend-mode: overlay;
}

.imagen-descarga-container:hover .adjunto-eliminar-icono {
    display: block;
}

.imagen-descarga-container .adjunto-eliminar-icono {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    color: #ee6f5f;
    cursor: pointer;
    z-index: 1;
    font-size: 18px;
}

/* ------------------------------------ */
.loading {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
}

.loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 140px;
    height: 140px;
    border: 12px solid transparent;
    border-top: 12px solid #7AD0D8;
    border-right: 12px solid #50E3C2;
    border-radius: 50%;
    position: relative;
    animation: spin 1.2s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(122, 208, 216, 0.4),
        0 0 60px rgba(80, 227, 194, 0.2),
        inset 0 0 8px rgba(255, 255, 255, 0.1);
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    animation: reflect 2s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.loader::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 227, 194, 0.15), transparent 70%);
    animation: haloGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

.loading-text {
    margin-top: 1.75rem;
    font-size: 1.6rem;
    font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(80, 227, 194, 0.35);
    animation: textLevit 2.2s ease-in-out infinite alternate;
}

.dots::after {
    content: '.';
    animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
    0% {
        content: '.';
    }

    25% {
        content: '..';
    }

    50% {
        content: '...';
    }

    75% {
        content: '';
    }

    100% {
        content: '.';
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseInner {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

@keyframes haloGlow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes textLevit {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes reflect {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-content-comunicado {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.close-modalComunicado {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
}

.close-modalComunicado:hover,
.close-modalComunicado:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal.modal-comunicado.show {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.pdf-container {
    width: 100%;
    height: calc(50vh - 70px);
    overflow: auto;
    min-height: 200px;
}

#iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: none;
}

.btn-pdf {
    background-color: transparent;
    border: none;
    color: red;
    cursor: pointer;
    padding: 5px;
    font-size: 23px;
}

.btn-pdf:hover {
    color: darkred;
}

.resumen-card.selected {
    border: 3px solid #ff8902;
    /* Cambia el color del borde para resaltar */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.form-inline .form-group {
    margin-right: 20px;
}

.form-inline .form-group label {
    margin-right: 10px;
}

/* -------------------------------- */
.sweet-encuesta .swal-btn-confirm,
.sweet-encuesta .swal-btn-cancel {
    width: 170px;
    height: 44px;
    font-size: 15px;
    margin: 8px 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Confirmar */
.sweet-encuesta .swal-btn-confirm {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sweet-encuesta .swal-btn-confirm:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Cancelar */
.sweet-encuesta .swal-btn-cancel {
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    color: #374151;
    border: 1px solid #d1d5db;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.sweet-encuesta .swal-btn-cancel:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.swal2-popup.sweet-encuesta {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ----------------------- */
#modern-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    display: none;

    background:
        linear-gradient(135deg, rgba(236, 239, 255, 0.05), rgba(17, 24, 39, 0.8)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%23ffffff' fill-opacity='0.015' cx='30' cy='30' r='30'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    backdrop-filter: blur(24px) brightness(0.5);
    -webkit-backdrop-filter: blur(24px) brightness(0.5);
    transition: all 0.3s ease-in-out;
}

#modern-backdrop.active {
    display: block;
}

/* ----------------------------- */
@media (prefers-color-scheme: dark) {
    .sweet-container {
        background: linear-gradient(135deg, rgba(30, 30, 30, 0.7), rgba(40, 40, 40, 0.6));
        color: #f3f4f6;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sweet-title {
        color: #f9fafb;
    }

    .sweet-text,
    .sweet-subtext {
        color: #d1d5db;
    }
}

@media (prefers-color-scheme: light) {
    .sweet-container {
        background: linear-gradient(to bottom, #ffffff, #f9fafb);
        color: #1f2937;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
    }

    .sweet-title {
        color: #1f2937;
    }

    .sweet-text {
        color: #374151;
    }

    .sweet-subtext {
        color: #6b7280;
    }
}

/* Comunes */
.sweet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    padding: 24px;
    border-radius: 20px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    transition: all 0.3s ease-in-out;
    animation: popupEntrance 0.45s ease-out;
}

.emoji-pulse {
    font-size: 28px;
    animation: pulseEmoji 2.5s infinite;
}

.glow-bar {
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #ec4899);
    border-radius: 8px;
    animation: glowbar 4s ease-in-out infinite;
    margin-top: 20px;
    z-index: 2;
}

/* Animaciones */
@keyframes popupEntrance {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseEmoji {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

@keyframes glowbar {
    0% {
        opacity: 0.4;
        transform: translateX(-10px);
    }

    50% {
        opacity: 1;
        transform: translateX(10px);
    }

    100% {
        opacity: 0.4;
        transform: translateX(-10px);
    }
}

.aurora-gradient {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(203, 213, 225, 0.18), transparent 55%),
        /* gris azulado sutil */
        radial-gradient(circle at 70% 70%, rgba(94, 234, 212, 0.12), transparent 55%),
        /* turquesa elegante */
        radial-gradient(circle at 60% 40%, rgba(147, 197, 253, 0.10), transparent 60%);
    /* azul cielo sutil */
    animation: auroraMove 16s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes auroraMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10%, 10%) rotate(10deg);
    }
}