
.feature-card-icon.translate-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.feature-card-btn.tr-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}
.feature-card-btn.tr-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}
.tr-form-area { margin-top: 4px; }
.tr-lang-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.tr-lang-select {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}
.tr-swap-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.tr-swap-btn:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.tr-text-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.tr-text-area {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.tr-text-area:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.tr-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.04);
    border-bottom: 1px solid var(--border-light);
}
.tr-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
}
.tr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tr-count {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-right: 4px;
}
.tr-action-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.tr-action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.tr-textarea {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 70px;
    outline: none;
    background: transparent;
}
.tr-textarea:focus {
    border: none;
    box-shadow: none;
}
.tr-output {
    padding: 12px;
    min-height: 70px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8fafc;
    cursor: text;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.tr-placeholder {
    color: var(--text-gray);
    font-style: italic;
}
.tr-quick-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.tr-quick-btn {
    padding: 6px 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.06);
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.tr-quick-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: transparent;
}
.tr-history {
    margin-top: 16px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.tr-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.tr-clear-history {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
}
.tr-clear-history:hover { text-decoration: underline; }
.tr-history-list {
    max-height: 150px;
    overflow-y: auto;
}
.tr-history-item {
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid #3b82f6;
}
.tr-history-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(2px);
}
.tr-history-item .tr-history-src {
    color: var(--text-gray);
    text-decoration: line-through;
    margin-bottom: 2px;
    font-size: 0.78rem;
}
.tr-history-item .tr-history-dst {
    color: var(--text-dark);
    font-weight: 500;
}

