/* Modern Modal Styling */
.modal-dialog-scrollable {
    max-height: calc(100% - 1rem);
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 1.5rem;
    background-color: #fff;
}

.modal-title {
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.btn-close {
    background: none;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.custom-modal-body {
    padding: 1.5rem;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal-body p {
    margin-bottom: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    justify-content: center;
}

.modal-footer .thm-btn {
    min-width: 120px;
    text-align: center;
}

/* Custom scrollbar for the modal */
.custom-modal-body::-webkit-scrollbar {
    width: 6px;
}

.custom-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.custom-modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Animation for modal */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}
