/**
 * ZapVixAI - Frontend Styles v3.1
 * Bootstrap 5 Based
 */

.zapvix-upload-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.zapvix-upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.zapvix-upload-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.zapvix-upload-header p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.zapvix-upload-tabs {
    margin-bottom: 30px;
}

.zapvix-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
}

.zapvix-tab-btn:hover {
    color: #6366f1;
    background: #f8faff;
}

.zapvix-tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: #f8faff;
}

.zapvix-dropzone {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 80px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.zapvix-dropzone:hover,
.zapvix-dropzone.drag-over {
    border-color: #6366f1;
    background: #eef2ff;
    transform: scale(1.02);
}

.zapvix-dropzone-icon {
    font-size: 80px;
    color: #6366f1;
    margin-bottom: 20px;
}

.zapvix-dropzone-text {
    color: #64748b;
}

.zapvix-dropzone-text strong {
    color: #1e293b;
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
}

.zapvix-file-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #e2e8f0;
}

.zapvix-file-icon {
    font-size: 48px;
    color: #ef4444;
}

.zapvix-file-info {
    flex: 1;
}

.zapvix-file-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 5px;
}

.zapvix-file-size {
    font-size: 14px;
    color: #64748b;
}

.zapvix-file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zapvix-file-remove:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

#zapvix-text-content {
    width: 100%;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 25px;
    transition: border-color 0.3s;
}

#zapvix-text-content:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.zapvix-btn {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zapvix-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.zapvix-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.zapvix-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.zapvix-progress-container {
    margin-top: 30px;
}

.zapvix-progress {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.zapvix-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    width: 0%;
    transition: width 0.3s;
}

.zapvix-progress-bar.animated {
    animation: progress-animation 1.5s infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.zapvix-progress-text {
    text-align: center;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.zapvix-upload-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.zapvix-result-success {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #10b981;
}

.zapvix-result-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zapvix-fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .zapvix-upload-container {
        margin: 20px;
        padding: 25px;
    }
    
    .zapvix-upload-header h3 {
        font-size: 24px;
    }
    
    .zapvix-dropzone {
        padding: 50px 15px;
    }
    
    .zapvix-dropzone-icon {
        font-size: 60px;
    }
}
