/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content-react {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header-react {
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffa600);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
}

.modal-title-react {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Modal Body */
.modal-body-react {
    padding: 30px;
}

.course-detail-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.5rem;
    margin-top: 3px;
}

.detail-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.price-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #fff5f2, #fff9f5);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list i {
    font-size: 1.2rem;
}

/* Modal Footer */
.modal-footer-react {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer-react .btn {
    padding: 10px 25px;
}

/* Confirmation Modal */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1060;
    pointer-events: none;
    padding-top: 80px;
}

.confirmation-modal {
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    pointer-events: all;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-icon {
    font-size: 3rem;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.confirmation-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #333;
}

.confirmation-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #ff6b35, #ff8c42, #ffa600);
    animation: progress 3s linear;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.confirmation-modal.success {
    border-top: 4px solid #28a745;
}

.confirmation-modal.error {
    border-top: 4px solid #dc3545;
}

.confirmation-modal.info {
    border-top: 4px solid #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content-react {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header-react {
        padding: 20px;
    }

    .modal-title-react {
        font-size: 1.4rem;
    }

    .modal-body-react {
        padding: 20px;
    }

    .modal-footer-react {
        flex-direction: column;
    }

    .modal-footer-react .btn {
        width: 100%;
    }

    .confirmation-modal {
        margin: 0 20px;
        min-width: auto;
    }
}

/* Scrollbar customization for modal */
.modal-content-react::-webkit-scrollbar {
    width: 8px;
}

.modal-content-react::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content-react::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35, #ffa600);
    border-radius: 4px;
}

.modal-content-react::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

/* Page Header Cursos */
.page-header-cursos {
    background: linear-gradient(135deg, #fff5f2, #fff9f5);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #ff6b35;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header-cursos h1 {
    color: #333;
}

.page-header-cursos .lead {
    font-size: 1.1rem;
}

.page-header-cursos .text-primary {
    color: #ff6b35 !important;
}

@media (max-width: 768px) {
    .page-header-cursos {
        padding: 20px;
        text-align: center;
    }
    
    .page-header-cursos h1 {
        font-size: 1.8rem;
    }
    
    .page-header-cursos .col-md-4 {
        margin-top: 15px;
    }
}

/* Botões vibrantes nos modais */
.modal-footer-react .btn-inscreva {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa600 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-footer-react .btn-inscreva::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffa600 0%, #ff8c42 50%, #ff6b35 100%);
    transition: left 0.3s ease;
}

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

.modal-footer-react .btn-inscreva:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.modal-footer-react .btn-inscreva span,
.modal-footer-react .btn-inscreva i {
    position: relative;
    z-index: 1;
}

.modal-footer-react .btn-inscreva:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Botão outline primary vibrante */
.btn-outline-primary {
    border: 2px solid #ff6b35;
    color: #ff6b35;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa600 100%);
    border-color: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
