.aims-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.aims-bar__title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.aims-bar__buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.aims-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.aims-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.aims-btn:active {
    transform: translateY(0);
}

.aims-btn__icon {
    display: inline-flex;
    align-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.aims-btn__icon svg {
    width: 100%;
    height: 100%;
}

.aims-btn__copied {
    display: none;
    color: #059669;
    font-size: 12px;
}

.aims-btn__paste-hint {
    display: none;
    font-size: 10px;
    color: #9ca3af;
    margin-left: 2px;
}

.aims-btn--paste .aims-btn__paste-hint {
    display: inline;
}

.aims-btn--paste-active .aims-btn__copied {
    display: inline;
    color: #d97706;
}

.aims-btn--paste-active .aims-btn__label,
.aims-btn--paste-active .aims-btn__paste-hint {
    display: none;
}

.aims-btn.aims-btn--copied .aims-btn__label {
    display: none;
}

.aims-btn.aims-btn--copied .aims-btn__copied {
    display: inline;
}

/* Mobile */
@media (max-width: 600px) {
    .aims-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .aims-bar__buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .aims-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Scrollbar styling */
.aims-bar__buttons::-webkit-scrollbar {
    height: 4px;
}

.aims-bar__buttons::-webkit-scrollbar-track {
    background: transparent;
}

.aims-bar__buttons::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}
