/* =========================================
   ADMIN SOLICITUDES - CSS MODULAR
   ========================================= */

/* Header y filtros */
.solicitudes-header {
    margin-bottom: 2rem;
}

.solicitudes-header h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.solicitudes-header h2::before {
    content: "\f0ae";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: #3498db;
}

.filtros-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.filtros-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filtro-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filtro-label {
    font-weight: 600;
    color: #495057;

    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #007bff;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: #495057;
    line-height: 1.5;
}

/* Panel de evidencias */
.evidencias-panel {
    background-color: #f8f9fa;
    padding: 1.5rem;
    min-height: 100vh;
}

.evidencias-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evidencias-card .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-bottom: none;
    padding: 1rem;
    font-weight: 600;
}

.evidencias-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.evidencias-list::-webkit-scrollbar {
    width: 6px;
}

.evidencias-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.evidencias-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.evidencias-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Items de evidencia */
.evidencia-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.evidencia-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.evidencia-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.evidencia-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.evidencia-info {
    flex: 1;
}

.evidencia-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    word-break: break-word;
}

.evidencia-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.evidencia-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.evidencia-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h6 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* Panel de contacto */
.contacto-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.contacto-card .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border-bottom: none;
    padding: 1rem;
    font-weight: 600;
}

.contacto-info {
    padding: 0.5rem;
}

.contacto-field {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.contacto-field:last-child {
    margin-bottom: 0;
}

.contacto-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contacto-value {
    color: #495057;
    font-weight: 500;
}

.contacto-value a {
    color: #007bff;
    text-decoration: none;
}

.contacto-value a:hover {
    text-decoration: underline;
}

/* =========================================
   EVIDENCIAS SECTION - PARCIAL
   ========================================= */

.evidencias-section {
    margin-top: 1.5rem;
}

.evidencias-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.evidencias-header h6 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.download-all-btn {
    transition: all 0.2s ease;
}

.download-all-btn:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.evidencias-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.evidencia-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.evidencia-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.evidencia-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.evidencia-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.evidencia-info {
    flex: 1;
    min-width: 0;
}

.evidencia-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    word-break: break-word;
    font-size: 0.95rem;
}

.evidencia-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.file-size {
    font-weight: 500;
}

.file-date {
    color: #868e96;
}

.evidencia-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.evidencia-actions .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.evidencia-actions .btn:hover {
    transform: translateY(-1px);
}

.download-btn:hover {
    background-color: #007bff;
    color: white;
}

.preview-btn:hover {
    background-color: #17a2b8;
    color: white;
}

.copy-link-btn:hover {
    background-color: #6c757d;
    color: white;
}

/* Estado vacío de evidencias */
.evidencias-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive design para evidencias */
@media (max-width: 768px) {
    .evidencias-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .evidencia-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .evidencia-content {
        margin-bottom: 0.5rem;
    }
    
    .evidencia-actions {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .evidencia-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .evidencias-empty {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 2.5rem;
    }
    
    .evidencia-actions .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
}
