.text-menu {
    position: fixed;
    z-index: 1100;
    background: #252528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 2px;
    transform: translateX(-50%) translateY(-100%);
    margin-top: -10px;
    animation: fadeIn 0.15s ease-out;
}

.text-menu::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #252528;
}

.menu-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.1s;
    min-width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.menu-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.color-picker {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.remove-color-btn {
    font-size: 0.75rem;
    min-width: 24px;
    padding: 4px;
    color: #ff6b6b;
}

.remove-color-btn:hover {
    background: rgba(255, 100, 100, 0.15);
}

.text-xs {
    font-size: 0.7rem;
}

.text-sm {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.2rem;
    font-weight: 700;
}

.link-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-modal {
    background: #252528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.link-modal-header {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.link-modal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-modal-body label {
    font-size: 0.8rem;
    color: #aaa;
}

.link-input {
    background: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.link-input:focus {
    border-color: rgba(100, 150, 255, 0.5);
}

.link-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.link-btn {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.link-btn.cancel {
    background: transparent;
    color: #aaa;
}

.link-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
}

.link-btn.confirm {
    background: #4a9eff;
    color: #fff;
}

.link-btn.confirm:hover {
    background: #3a8eef;
}