
.regex-tool {
    background: white;
    border-radius: 0.714rem;
    padding: 1.286rem;
    box-shadow: 0 0.214rem 0.714rem rgba(0,0,0,0.04);
    margin-bottom: 1.429rem;
}

.regex-tool h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.regex-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.regex-input-group label {
    display: block;
    font-size: 0.929rem;
    margin-bottom: 0.357rem;
    color: #4a5568;
    margin-top: 0.357rem;
}

.regex-input-group input,
.regex-input-group textarea {
    width: 100%;
    padding: 0.571rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.357rem;
    font-size: 0.929rem;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.regex-input-group textarea {
    min-height: 6rem;
    resize: vertical;
}

.regex-buttons {
    display: flex;
    gap: 0.571rem;
    flex-wrap: wrap;
    margin-top: 0.571rem;
}

.regex-btn {
    background: #f0f9ff;
    border: 1px solid #bee3f8;
    color: #3182ce;
    padding: 0.286rem 0.571rem;
    border-radius: 0.357rem;
    font-size: 0.857rem;
    cursor: pointer;
    transition: all 0.2s;
}

.regex-btn:hover {
    background: #e6f7ff;
    border-color: #90cdf4;
}

.regex-results {
    margin-top: 1rem;
}

.regex-results h4 {
    font-size: 1rem;
    margin-bottom: 0.571rem;
    color: #2d3748;
}

.regex-matches {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.357rem;
    padding: 0.714rem;
    max-height: 12rem;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.929rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.regex-error {
    color: #e53e3e;
    font-size: 0.929rem;
    margin-top: 0.571rem;
}