/* Modal Overlay Styles */
    .modal-download {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.6); 
        backdrop-filter: blur(5px); 
        -webkit-backdrop-filter: blur(5px); /* Compatibilidade Safari */
        z-index: 9999; 
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Animação de entrada do modal */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* Modal Content */
    .modal-content {
        background: white;
        border-radius: 12px;
        padding: 30px;              
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: slideIn 0.3s ease-out;
    }

    /* Animação de entrada do conteúdo */
    @keyframes slideIn {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Modal Header */
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
    }

    .modal-header h5 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #333;
    }

    /* Botão de fechar */
    .close-modal {
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        color: #999;
        background: none;
        border: none;
        padding: 5px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        margin-left: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .close-modal:hover {
        color: #333;
        background-color: #f0f0f0;
        transform: scale(1.1);
    }

    /* Modal Body */
    .modal-body {
        color: #555;
        line-height: 1.6;
    }

    /* Modal Description */
    .modal-description {
        margin-bottom: 25px;
        font-size: 1rem;
        color: #666;
        text-align: center;
    }

    /* Download Columns Layout */
    .download-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 1rem;
    }

    .download-column {
        padding: 20px;
        border: 1px solid var(--sisam-border-color);
        border-radius: var(--radius-md);
        background-color: var(--sisam-bg-color-light-gray);
    }

    .column-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #495057;
        
        text-align: center;
        padding-bottom: 10px;
        
    }

    /* Form Styling */
    .week-selection-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Radio Group */
    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Radio Option */
    .radio-option {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        border: 2px solid #e1e5e9;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #ffffff;
        position: relative;
    }

    .radio-option:hover {
        border-color: #6c757d;
        background: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.15);
    }    

    .radio-option.featured:hover {
        border-color: #5a6268;
        background: linear-gradient(135deg, #e9ecef, #dee2e6);
    }

    /* Hidden Radio Input */
    .radio-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    /* Custom Radio Button */
    .radio-custom {
        width: 18px;
        height: 18px;
        border: 2px solid #ddd;
        border-radius: 50%;
        margin-right: 12px;
        position: relative;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .radio-custom::after {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #6c757d;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.3s ease;
    }

    /* When radio is checked */
    .radio-option input:checked ~ .radio-custom {
        border-color: #6c757d;
        background: #fff;
    }

    .radio-option input:checked ~ .radio-custom::after {
        transform: translate(-50%, -50%) scale(1);
    }

    .radio-option.featured input:checked ~ .radio-custom {
        border-color: #6c757d;
    }

    .radio-option.featured input:checked ~ .radio-custom::after {
        background: #6c757d;
    }

    /* Radio Text */
    .radio-text {
        font-size: 0.9rem;
        font-weight: 500;
        color: #333;
        line-height: 1.4;
    }

    .radio-option:hover .radio-text {
        color: #495057;
    }

    .radio-option.featured .radio-text {
        color: #495057;
        font-weight: 600;
    }

    /* Modal Actions */
    
    .modal-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;              
    }

    /* Button Styles */
    .btn-cancel {
        flex: 1;
        padding: 12px 20px;
        background: #6c757d;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-cancel:hover {
        background: #5a6268;
        transform: translateY(-1px);
    }

    .btn-download {
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #6c757d, #5a6268);
        color: white;
        border: none;
        border-radius: 8px;
        font-family: var(--font-family-sans-serif);
        text-transform: uppercase;
        font-size: 1rem;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3); 
    }

    .btn-download:hover {
        background: linear-gradient(135deg, #5a6268, #495057);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    }

    .btn-download:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        opacity: 0.6;
    }

    /* Responsividade */
    @media (max-width: 768px) {
        .modal-content {
            margin: 20px;
            padding: 20px;
            max-height: 90vh;
            overflow-y: auto;
            max-width: 95%;
        }
        
        .download-columns {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .radio-option {
            padding: 10px 12px;
        }
        
        .modal-actions {
            flex-direction: column;
        }
        
        .btn-cancel,
        .btn-download {
            flex: none;
            width: 100%;
        }
        
        .radio-text {
            font-size: 0.85rem;
        }

        .column-title {
            font-size: 1.1rem;
        }
    }

    /* Loading state */
    .btn-download.loading {
        pointer-events: none;
        opacity: 0.7;
    }

    .btn-download.loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 8px;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Efeito de foco para acessibilidade */
    .modal-download:focus {
        outline: none;
    }

    .btn-download:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    .close-modal:focus {
        outline: 2px solid #6c757d;
        outline-offset: 2px;
    }