.right-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(30, 40, 60, 0.82);
    border-radius: 14px;
    padding: 20px 12px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.13);
    z-index: 5000;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f5f7fa;
    border: none;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 1rem;
    color: #223;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(30, 40, 80, 0.03);
    transition: background 0.14s, color 0.14s, box-shadow 0.14s;
    font-family: inherit;
}

.toolbar-btn:hover {
    background: #dbeafe;
    color: #0052cc;
    box-shadow: 0 4px 10px rgba(24, 64, 200, 0.07);
    transform: scale(1.2);
}

.toolbar-btn:active {
    transform: scale(0.98);
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s, color 0.1s;
   
}
.toolbar-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 3px 18px rgba(24, 64, 200, 0.16);
}

.toolbar-btn.active svg {
    color: #fff; }

.toolbar-btn svg {
    display: inline-block;
    vertical-align: middle;
    color: #4180e8;
}


.toolbar-btn.active svg {
  animation: spin 0.8s linear;
}
@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg);}
}
