/* Modal Styles */
.modal {
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 99999 !important;
}

.modal-dialog {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-50px);
    opacity: 0;
}

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

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.modal-header {
    background: linear-gradient(135deg, #2db094, #37c8a9);
    color: white;
    border: none;
    padding: 25px 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modal-icon-container {
    position: relative;
    z-index: 1;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-icon i {
    font-size: 28px;
    color: white;
}

.modal-title-container {
    flex: 1;
    position: relative;
    z-index: 1;
}

.modal-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-close {
    display: none;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
    text-align: justify;
    font-weight: 300;
}

.modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 20px 30px;
    gap: 15px;
}

.modal-footer .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #2db094 0%, #37c8a9 100%);
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #37c8a9 0%, #2db094 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.modal-footer .btn-primary:hover::before {
    left: 0;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 176, 148, 0.3);
}

.modal-footer .btn-primary i {
    transition: transform 0.3s ease;
}

.modal-footer .btn-primary:hover i {
    transform: translateX(3px);
}

/* Animation for modal entrance */
@keyframes modalSlideIn {
    0% {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal.show .modal-dialog {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Backdrop animation */
.modal-backdrop {
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 0.6;
}

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

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

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2db094, #37c8a9);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #259d7f, #2fb396);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .modal-icon i {
        font-size: 24px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-description {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}