/* ======================================================================
   VIDEO UPLOAD STEPS - ESTILOS COMPLETOS
   ====================================================================== */

.video-upload-steps-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.upload-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    text-align: center;
}

/* Barra de progreso */
.steps-progress {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.steps-progress:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.step-indicator {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #666;
    font-weight: bold;
    margin: 0 auto 10px auto;
    transition: all 0.3s;
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.step-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 600;
}

.step-indicator.active .step-label {
    color: #667eea;
}

/* Contenido de las etapas */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Área de subida */
.file-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
    margin: 20px 0;
}

.file-upload-area.highlight {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-placeholder svg {
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #4a5568;
    margin: 10px 0;
}

.upload-subtext {
    color: #718096;
    margin: 5px 0 15px 0;
}

.file-types {
    font-size: 0.9em;
    color: #a0aec0;
}

/* Información del archivo */
.file-info {
    padding: 20px;
}

.file-details {
    background: #e6fffa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #38b2ac;
    margin-bottom: 15px;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.file-size {
    display: block;
    color: #718096;
    font-size: 0.9em;
}

/* Barra de progreso de subida */
.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
    border-radius: 5px;
}

.progress-text {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #4a5568;
}

/* Formulario */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Miniaturas */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.thumbnail-item {
    position: relative;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.thumbnail-item.selected {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.thumbnail-time {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 0.8em;
}

.thumbnail-check {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #48bb78;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
}

.thumbnail-item.selected .thumbnail-check {
    opacity: 1;
}

/* Botones */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-prev, .btn-next, .btn-confirm, .btn-skip {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.btn-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-skip {
    background: #ed8936;
    color: white;
}

.btn-prev:hover {
    background: #cbd5e0;
}

.btn-next:hover, .btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-skip:hover {
    background: #dd6b20;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Resultado final */
.result-container {
    margin-top: 30px;
    padding: 30px;
    background: #f0fff4;
    border-radius: 10px;
    border: 2px solid #9ae6b4;
    animation: fadeIn 0.5s ease;
}

.success-message h3 {
    color: #276749;
    margin-top: 0;
}

.success-details {
    margin: 20px 0;
    color: #2d3748;
}

.success-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-edit, .btn-view, .btn-new {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-view {
    background: #48bb78;
    color: white;
}

.btn-new {
    background: #ed8936;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

/* Logs en vivo */
.live-logs-container {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.live-logs {
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #4a5568;
}

.log-entry.error {
    color: #c53030;
    font-weight: 600;
}

.log-entry.warning {
    color: #d69e2e;
}

.log-entry.info {
    color: #2b6cb0;
}

.btn-clear-logs {
    background: #718096;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-clear-logs:hover {
    background: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .video-upload-steps-container {
        padding: 20px;
    }
    .thumbnails-grid {
        grid-template-columns: 1fr;
    }
    .step-actions {
        flex-direction: column;
        gap: 10px;
    }
    .step-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
    .success-actions {
        flex-direction: column;
    }
    .success-actions a,
    .success-actions button {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}