/* Estilos generales */
.skynet-planificaciones-supervisor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.skynet-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.skynet-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
}

.skynet-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Filtros */
.skynet-filtros {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filtro-group {
    display: flex;
    flex-direction: column;
}

.filtro-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.skynet-input, .skynet-select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.skynet-input:focus, .skynet-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filtro-actions {
    display: flex;
    gap: 10px;
    flex-direction: row !important;
}

/* Botones */
.skynet-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skynet-btn.primary {
    background: #667eea;
    color: white;
}

.skynet-btn.primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.skynet-btn.secondary {
    background: #6c757d;
    color: white;
}

.skynet-btn.secondary:hover {
    background: #5a6268;
}

.skynet-btn.pdf {
    background: #dc3545;
    color: white;
}

.skynet-btn.pdf:hover {
    background: #c82333;
}

.skynet-btn.email {
    background: #28a745;
    color: white;
}

.skynet-btn.email:hover {
    background: #218838;
}

/* Resumen */
.skynet-resumen {
    margin-bottom: 25px;
}

.resumen-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.resumen-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #667eea;
}

.resumen-card.pendientes { border-left-color: #ffc107; }
.resumen-card.proceso { border-left-color: #17a2b8; }
.resumen-card.finalizadas { border-left-color: #28a745; }

.resumen-icon {
    font-size: 2em;
}

.resumen-content {
    display: flex;
    flex-direction: column;
}

.resumen-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.resumen-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabla */
.skynet-resultados {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tabla-container {
    overflow-x: auto;
}

.skynet-tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.skynet-tabla th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.skynet-tabla td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.skynet-tabla tbody tr:hover {
    background: #f8f9fa;
}

/* Estados */
.estado {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-pendiente {
    background: #fff3cd;
    color: #856404;
}

.estado-proceso {
    background: #cce5ff;
    color: #004085;
}

.estado-finalizada {
    background: #d4edda;
    color: #155724;
}

/* Loading */
.skynet-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensajes */
.skynet-mensajes {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.skynet-alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.skynet-alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.skynet-alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.skynet-alert.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Modal */
.skynet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    flex: 1;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal-close:hover {
    color: #495057;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

.skynet-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    color: #6c757d;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .skynet-planificaciones-supervisor {
        padding: 10px;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .filtro-actions {
        flex-direction: column;
    }
    
    .resumen-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}