/* WebCopy - Estilos da Interface Web */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --error: #f56565;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form Section */
.form-section {
    display: block;
}

.form-section.hidden {
    display: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

/* Progress Section */
.progress-section {
    display: none;
    text-align: center;
}

.progress-section.active {
    display: block;
}

.progress-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-bar-container {
    background: var(--bg-light);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-status {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 15px;
}

.progress-details {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step.current {
    color: var(--primary);
    font-weight: 600;
}

/* Result Section */
.result-section {
    display: none;
    text-align: center;
}

.result-section.active {
    display: block;
}

.result-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.result-info {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.result-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.result-info-row:last-child {
    border-bottom: none;
}

.result-info-label {
    color: var(--text-light);
    font-weight: 500;
}

.result-info-value {
    color: var(--text-dark);
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.result-actions .btn {
    flex: 1;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.btn-info {
    background: var(--primary);
    color: white;
}

.btn-info:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Error State */
.error-message {
    background: #fff5f5;
    border: 2px solid var(--error);
    color: var(--error);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}
