.modal-content {
    background: #050F28;
    border: none;
    border-radius: 30px;
    color: #fff;
}

.modal-dialog {
    margin-top: 4rem;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: none;
    justify-content: flex-end;
}

.modal-header .btn-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    padding: 0.5rem;
    margin: 0;
    opacity: 1;
}

.modal-body {
    min-height: 50vh;
    padding: 2rem;
    margin-top: -6rem;
    position: relative;
}

.profissional-foto {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 4px solid #2a3248;
    border-radius: 50%;
    overflow: hidden;
}

.profissional-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profissional-foto:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.profissional-nome {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.profissional-curriculo {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.curriculo-item {
    margin-bottom: 2rem;
}

.curriculo-item h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2a3248;
}

.curriculo-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.curriculo-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.curriculo-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2a3248;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .profissional-foto {
        width: 150px;
        height: 150px;
        border: 0px solid #2a3248;
    }
    
    .profissional-nome {
        font-size: 1.5rem;
    }
    
    .profissional-curriculo {
        font-size: 1rem;
    }
    
    .curriculo-item h4 {
        font-size: 1.2rem;
    }
} 

/* Photo Album Modal */

#eventPhotoModal .modal-title {
    font-weight: 700;
    position: absolute;
    top: 1.5rem;
    text-align: center;
}

#eventPhotoModal .modal-header {
    justify-content: space-between;
    align-items: center;
}

.event-photo {
    border-radius: 15px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pagination .page-item .page-link {
    background-color: transparent;
    border: 1px solid #2a3248;
    color: #fff;
    margin: 0 2px;
    border-radius: 5px;
}

.pagination .page-item .page-link:hover {
    background-color: #2a3248;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #fff;
    border-color: #fff;
    color: #050F28;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #2a3248;
    color: #4f5a77;
}

#loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 15, 40, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 30px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#close-viewer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1056; /* Ensure it's above the image */
}

/* Thumbnail Carousel Styles */
#thumbnail-swiper {
    padding: 10px 0;
}

#thumbnail-swiper .swiper-slide {
    width: auto;
}

.thumbnail-item {
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    height: 80px;
    width: 80px;
    object-fit: cover;
}

.thumbnail-item:hover {
    opacity: 1;
}

#thumbnail-swiper .swiper-slide.active-thumbnail .thumbnail-item {
    opacity: 1;
    border-color: #fff; /* Or any highlight color */
}

#thumbnail-swiper .swiper-button-next,
#thumbnail-swiper .swiper-button-prev {
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 480px) {
    .modal-body {
        min-height: 1vh;
        padding: 2rem;
        margin-top: 1rem;
        position: relative;
    }

    .modal-header {
        margin-top: 2rem;
        padding: 1.5rem;
        border-bottom: none;
        justify-content: flex-end;
    }
}