/* =====================================
   STUDENT SHARING ENHANCED - MINIMAL
   ===================================== */

/* Badge pendiente */
#receiveOffersBtn .pending-offers-badge {
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modal */
.student-share-modal .modal-content {
    background: var(--bg-secondary);
}

/* Secciones */
.student-share-modal .section {
    background: var(--bg-tertiary);
    transition: border-color 0.15s;
}

.student-share-modal .section:hover {
    border-color: var(--primary);
}

/* Checkbox pill seleccionado */
.checkbox-pill:has(input:checked) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* EXCLUDE section filter chips from the generic pill override */
.share-sections-filter .checkbox-pill:has(input:checked),
.share-sections-filter .section-filter-chip:has(input:checked) {
    background: rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Friend items seleccionados */
.friend-item:has(input:checked) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.friend-item:has(input:checked) .friend-name {
    font-weight: 600;
}

/* Lista de ofertas */
.student-offers-list li {
    transition: transform 0.15s;
}

.student-offers-list li:hover {
    transform: translateY(-1px);
}

/* Preview tabla */
.students-preview-table {
    border-radius: 8px;
    overflow: hidden;
}

.students-preview-table thead th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.students-preview-table tbody tr:nth-child(even) {
    background: var(--claude-accent-light, rgba(217,119,6,0.05));
}

/* Controles por grado */
.grade-bulk-controls {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    padding: 10px;
}

.grade-bulk-item {
    transition: opacity 0.15s;
}

.grade-bulk-item[data-state='off'] {
    opacity: 0.5;
}

.grade-bulk-item[data-state='partial'] {
    outline: 2px dashed var(--warning);
    background: rgba(217,119,6,0.1);
}

/* Chips de grado */
.grade-bulk-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.grade-bulk-item input {
    accent-color: var(--primary);
}

.grade-bulk-item[data-state='on'] {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Chips filtro */
.grade-filter-chip {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.grade-filter-chip:hover {
    background: var(--border-color);
}

.grade-filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Select destino de grado */
.grade-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Animación de entrada para filas */
@keyframes rowFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.students-preview-table tbody tr {
    animation: rowFade 0.2s ease;
}

/* Modal resumen */
#importSummaryModal .modal-content {
    background: var(--bg-secondary);
}

.import-summary-details ul {
    list-style: disc;
    padding-left: 20px;
}

.import-summary-details li {
    margin-bottom: 4px;
}

/* Responsivo */
@media (max-width: 780px) {
    .student-share-modal .modal-content {
        width: 94%;
    }

    .students-preview-table thead {
        font-size: 11px;
    }

    .grade-bulk-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
