/* Tool Specific Styles */
.tool-container {
    max-width: 900px;
    margin: 3rem auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.tool-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.tool-header p {
    color: var(--text-muted);
}

.tool-ui {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tool-textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: monospace;
    font-size: 1rem;
    resize: vertical;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.output-group {
    background: rgba(var(--primary), 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 1.5rem;
}

.output-content {
    word-break: break-all;
    white-space: pre-wrap;
    font-family: monospace;
}

.tool-info-section {
    margin-top: 4rem;
}

.info-card {
    margin-bottom: 3rem;
}

.info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.copy-btn {
    position: relative;
    overflow: hidden;
}

.copy-btn::after {
    content: 'Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}

.copy-btn.copied::after {
    top: -40px;
    opacity: 1;
}

.ad-slot {
    display: block;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    padding: 1rem;
    margin: 1.5rem auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    max-width: 900px;
}
