/* ========================================================
   MÓDULO DE REPORTE DE SITUACIONES
   ======================================================== */

/* ==================== SWITCH DE PRIVACIDAD ==================== */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(59, 130, 246, 0.3);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background-color: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

input:checked + .slider:before {
    transform: translateX(30px);
    background-color: #8b5cf6;
}

/* ==================== FILTROS DE ESTADO ==================== */
.status-filter-btn {
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-filter-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.status-filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* ==================== LISTA DE REPORTES ==================== */
.reports-list {
    display: grid;
    gap: 20px;
}

/* ==================== TARJETA DE REPORTE ==================== */
.report-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Header del reporte */
.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.report-card-info {
    flex: 1;
    min-width: 200px;
}

.report-radicado {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.report-category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.report-category-badge.infraestructura {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.report-category-badge.convivencia {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.report-category-badge.academico {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Estado del reporte */
.report-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.pendiente {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.revision {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.resuelto {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Descripción del reporte */
.report-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer del reporte */
.report-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.report-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.report-meta-item {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-meta-item i {
    font-size: 0.9rem;
}

/* Indicador de imagen */
.has-image-indicator {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Botones de acción */
.report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.report-action-btn.view {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.report-action-btn.view:hover {
    background: rgba(6, 182, 212, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.report-action-btn.status {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.report-action-btn.status:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.report-action-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.report-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ==================== MODAL DE DETALLES ==================== */
.report-detail-section {
    margin-bottom: 25px;
}

.report-detail-section h4 {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-detail-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.report-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--color-cyan);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5);
}

/* Selector de estado en modal */
.status-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.status-option {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-option.pendiente {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-option.revision {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.status-option.resuelto {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.status-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-option.selected {
    border-width: 3px;
    transform: scale(1.05);
}

.status-option.pendiente.selected {
    background: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.status-option.revision.selected {
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.status-option.resuelto.selected {
    background: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .report-card {
        padding: 20px;
    }
    
    .report-card-header {
        flex-direction: column;
    }
    
    .report-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-actions {
        width: 100%;
    }
    
    .report-action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .status-filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }
    
    .status-selector {
        flex-direction: column;
    }
    
    .status-option {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .report-form-container {
        padding: 25px 20px !important;
    }
    
    .report-card {
        padding: 18px;
    }
    
    .report-category-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .report-description {
        font-size: 0.9rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ESTADO VACÍO ==================== */
.reports-list:empty + #no-reports-message {
    display: block !important;
}
