


.container {
    max-width: 1200px;
    margin: 0 auto;
}




.btn-open-modal {
    background: linear-gradient(135deg, var(--primary-color), #3a5a8a);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2rem auto;
    width: 300px;
}

.btn-open-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 111, 165, 0.4);
}

.btn-open-modal:active {
    transform: translateY(0);
}

/* Estilos para los SweetAlerts personalizados */
.custom-swal-container {
    max-width: 95% !important;
    width: 500px !important;
}

.custom-swal-popup {
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.custom-swal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

/* Estilos para checkboxes */
.checkbox-group {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--primary-color);
}

.checkbox-group h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-group h6 .select-all-btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    border: none;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-group h6 .select-all-btn:hover {
    background-color: rgba(74, 111, 165, 0.2);
}

/* Contenedor horizontal para grados 10° y 11° */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    margin-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #eaeaea;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.horizontal-checkbox-item {
    flex: 0 0 auto;
    width: 90px;
    margin-right: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 5px;
    background-color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.horizontal-checkbox-item:last-child {
    margin-right: 0;
}

.horizontal-checkbox-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.horizontal-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 2px solid #ccc;
    cursor: pointer;
}

.horizontal-checkbox-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.horizontal-checkbox-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    display: block;
    cursor: pointer;
    margin-bottom: 0;
}

/* Estilo normal para grados 7°, 8° y 9° */
.normal-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 5px;
}

.normal-checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.normal-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    cursor: pointer;
}

.normal-checkbox-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.normal-checkbox-item label {
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    margin-bottom: 0;
}

/* Checkbox para "Otros Grados" */
.otros-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 5px;
}

.otros-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.otros-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    cursor: pointer;
}

.otros-checkbox-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.otros-checkbox-item label {
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    margin-bottom: 0;
}

.selected-counter {
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.input-icon {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    z-index: 10;
}

.input-icon .form-control, .input-icon .form-select {
    padding-left: 45px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

.input-icon .form-control:focus, .input-icon .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 111, 165, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--secondary-color);
    flex-direction: column;
}

.loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.grade-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    color: var(--primary-color);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.info-card li {
    margin-bottom: 0.5rem;
    color: #555;
}

@media (max-width: 768px) {
    .custom-swal-container {
        width: 95% !important;
    }
    
    .custom-swal-content {
        max-height: 50vh;
        padding: 15px;
    }
    
    .header {
        padding: 1rem 0;
        border-radius: 10px;
    }
    
    .checkbox-group {
        padding: 0.8rem;
    }
    
    .horizontal-checkbox-item {
        width: 80px;
        padding: 8px 4px;
    }
    
    .normal-checkbox-container {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    
    .btn-open-modal {
        width: 100%;
        max-width: 300px;
    }
}