/* Customizações específicas para a ferramenta */
.tool-container {
    max-width: 1200px;
    margin: auto  auto 0rem auto;
    padding: 0 20px;
}

.tool-header {
    padding: 1rem 0 0 0.50rem;
    border-radius: 15px;
}

.tool-header h1 {
    font-size: 2.5rem;
}

.tool-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 auto 1rem auto;
}

.tool-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 0rem 0.50rem;
    margin-bottom: 0.50rem;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #667eea;
    font-weight: 500;
}

.tabs-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: 10px;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tab-button:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.editor-container {
    position: relative;
}

.code-editor {
    width: 100%;
    min-height: 400px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #f8f9fa;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
}

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

.samples-row {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.sample-button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sample-button:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.action-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-button.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.action-button.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px dashed #e9ecef;
    background: #fdfdff;
    min-height: 80px;
    transition: all 0.3s ease;
}

.result-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #b8dabc;
    color: #155724;
}

.result-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #f1aeb5;
    color: #721c24;
}

.result-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.result-icon {
    font-size: 1.2rem;
}

.info-box {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-description {
    color: #666;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .tool-container {
        padding: 0 15px;
    }

    .tool-header h1 {
        font-size: 2rem;
    }

    .tool-header .subtitle {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tabs-container {
        flex-direction: column;
    }

    .actions-row {
        flex-direction: column;
    }

    .action-button {
        justify-content: center;
    }

    .samples-row {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}