.skynet-reportes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.skynet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.skynet-header h1 {
    color: #0073aa;
    margin: 0;
}

.user-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
}

.reportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.reporte-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.reporte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.reporte-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reporte-header h2 {
    margin: 0;
    font-size: 1.3em;
}

.reporte-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.reporte-body {
    padding: 25px;
}

.reporte-body p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.reporte-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.form-actions {
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Resultados */
.resultados-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.resultados-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.resultados-header h2 {
    margin: 0;
    color: #333;
}

.resultados-content {
    padding: 25px;
}

.resultados-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.resultados-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Información de Uso */
.info-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.info-section h3 {
    color: #0073aa;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #0073aa;
}

.info-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.info-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Modales */
.skynet-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}

.close:hover {
    color: #000;
}

/* Alertas */
.skynet-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.skynet-alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.skynet-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.skynet-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Notificaciones */
.skynet-notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.skynet-notificacion.success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.skynet-notificacion.error {
    background: #dc3545;
    border-left: 4px solid #c82333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Flatpickr customization */
.flatpickr-input {
    background: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .reportes-grid {
        grid-template-columns: 1fr;
    }
    
    .skynet-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .resultados-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos específicos para el modal de envío */
.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.char-count {
    text-align: right;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.required {
    color: #dc3545;
}

.skynet-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.advertencias {
    margin: 20px 0;
}

.advertencias ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.advertencias li {
    margin-bottom: 5px;
}

.info-envio {
    margin: 20px 0;
}

.info-envio p {
    margin: 5px 0;
}

/* Mejoras para formularios en modal */
.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Validación visual */
.modal-content input:invalid,
.modal-content textarea:invalid {
    border-color: #dc3545;
}

.modal-content input:valid,
.modal-content textarea:valid {
    border-color: #28a745;
}

/* Botones del modal */
.modal-content .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .modal-content .form-actions {
        flex-direction: column;
    }
}