.tool-container {
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #bae6fd;
    background: #f0f9ff;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
    font-family: monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.editor-area {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.toolbar {
    background: #f9fafb;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-text {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-text:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-text.text-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

textarea {
    width: 100%;
    height: 400px;
    padding: 1rem;
    border: none;
    resize: vertical;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
    outline: none;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    textarea {
        height: 300px;
    }
}