body {
    background-color: #f5f5f5;
    padding-bottom: 30px;
}

.tool-container {
    max-width: 1100px;
    margin: 20px auto;
}

.tool-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tool-card .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-card .card-body {
    background: #fff;
}

.tool-actions .btn {
    border-radius: 999px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.85rem;
    margin-right: 8px;
}

.stat-chip i {
    margin-right: 4px;
}

.tool-section-title {
    font-weight: 600;
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.tool-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tool-table thead {
    background: #f8f9fc;
    color: #666;
    font-size: 0.9rem;
}

.tool-table th,
.tool-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    vertical-align: middle;
}

.tool-table tbody tr {
    transition: background 0.2s;
    cursor: pointer;
}

.tool-table tbody tr:hover {
    background: rgba(233, 30, 99, 0.05);
}

.text-monospace {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
}

.char-preview {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f1f3f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #212529;
}

.char-preview.control {
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.1;
    text-align: center;
    padding: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
}

.tag-soft {
    background: #f1f3f5;
    color: #6c757d;
}

.empty-state,
.error-state,
.loading-state {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f8f9fa;
}

.empty-state i,
.error-state i,
.loading-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #adb5bd;
}

.copy-btn {
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .tool-card {
        border-radius: 12px;
    }

    .tool-table th,
    .tool-table td {
        padding: 10px;
    }
}
